Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.alterauth.com/llms.txt

Use this file to discover all available pages before exploring further.

Alter ships two backend SDKs (Python, TypeScript) and one optional browser SDK (Connect.js). Backend SDKs are surface-parity — same method names (snake_case vs camelCase), same exception hierarchy, same models.

Pick a language

LanguagePackageInstall
Pythonalter-sdk (PyPI)pip install alter-sdk
TypeScript / Node@alter-ai/alter-sdk (npm)npm install @alter-ai/alter-sdk
Browser (popup)@alter-ai/connect (npm)npm install @alter-ai/connect
The browser SDK is optional. Server-rendered apps and CLIs don’t need it — the Alter Connect UI works as a hosted page reachable via create_connect_session().

Pick a class — App or Agent

Both backend SDKs expose two top-level classes. The constructed class decides the principal kind at runtime.
ClassAPI key prefixUse when
Appalter_key_app_…One backend service. Operator code. Anything that’s not a named agent.
Agentalter_key_agent_…A named, operator-provisioned workload (chat agent, MCP server, background worker).
See Agents → Overview for when to add Agent instances on top of App.

The one-line example

This is what application code looks like after the quickstart:
from alter_sdk import App, HttpMethod

vault = App(api_key=ALTER_API_KEY)
response = await vault.request(HttpMethod.GET, url, grant_id=GRANT_ID)

Reference

Both languages have an identical 8-page reference. Pick a language; the page split is the same:

Python reference

TypeScript reference

PageCovers
ClientApp, Agent, lifecycle
Requestrequest, proxy_request, boto3_client (Python only)
Grantslist_grants, create_managed_secret_grant, revoke_grant, revoke_delegation
Connectconnect, authenticate, create_connect_session, verify_user_token
AgentsApp.get_agent, App.agents.*, Agent.me, Agent.trace
Approvalsget_approval_status, await_approval
ErrorsException hierarchy + retry guidance
TypesPrincipal union, Grant, Context, dataclasses

Framework integrations

The Python SDK ships first-party integrations:

FastAPI

MCP

LangChain

TypeScript framework integrations land in upcoming releases.

See also