diff --git a/src/components/AuthSection.jsx b/src/components/AuthSection.jsx index f7540e3..c12d4af 100644 --- a/src/components/AuthSection.jsx +++ b/src/components/AuthSection.jsx @@ -1,6 +1,6 @@ 'use client'; -import { IconKey, IconLock, IconShield } from '@tabler/icons-react'; +import { IconKey, IconLock, IconScale, IconShield } from '@tabler/icons-react'; import CodeBlock from './CodeBlock'; import { getAccessModeOption } from './accessModes'; import { @@ -15,6 +15,9 @@ import { export default function AuthSection({ country, accessMode }) { const selectedMode = getAccessModeOption(accessMode, country); + const termsUrl = `${country.apiUrl}/terms`; + const householdApiLicenseUrl = + 'https://github.com/PolicyEngine/policyengine-household-api/blob/main/LICENSE'; return (
@@ -27,6 +30,29 @@ export default function AuthSection({ country, accessMode }) { hosted endpoint, request API credentials.

+
+
+ +

Commercial use and licensing

+
+

+ Using the hosted REST API is governed by our{' '} + + API Terms + + . API use does not itself trigger AGPL source-code disclosure. +

+

+ The self-hosted Docker image and Python package are open-source under the AGPL. These options can still + work for commercial use, but additional obligations can apply depending on how you run, modify, host, or + distribute the software. If licensing matters to your use case, review the{' '} + + household API license + {' '} + and consult counsel. +

+
+
@@ -102,6 +128,14 @@ export default function AuthSection({ country, accessMode }) { Use PolicyEngine's managed HTTP endpoint if you want a hosted integration rather than running the API yourself. This path requires OAuth client credentials issued by PolicyEngine.

+

+ For commercial closed-source integrations, this is the clearest path: hosted API use is governed by + our{' '} + + API Terms + + . +

Contact{' '} {country.dockerCalculateUrl}.

+

+ This is self-hosted AGPL-licensed software, not the hosted API service. Commercial use may still + work, but licensing obligations can depend on how you run, modify, or distribute the software. +

Python package

{country.pythonPackageSummary}

+

+ This path uses AGPL-licensed open-source code directly in your Python environment. Commercial use may + still work, but obligations can depend on how you use, modify, host, or distribute the software. +