Skip to main content

Pantheon developer docs

Build a stateful agent with streaming and application tools.

At a glance

Base URL
pantheon-todo.alethiconsulting.com/pantheon-api
Stream
Server-Sent Events
Status
Builder preview

Pantheon today​

Pantheon runs stateful agents behind a REST API. Your application owns its UI and business data.

Pantheon stores session events, streams live output, and pauses runs for application tools.

Base URL

https://pantheon-todo.alethiconsulting.com/pantheon-api

Building blocks​

ObjectWhat you use it for
AgentSet instructions, model, tool requirements, and sandbox policy.
ToolDescribe an application tool with input and output schemas.
DeploymentPublish one agent version with its tool definitions.
SessionKeep conversation state and a pinned deployment.
RunProcess one turn. A session allows one active run.
EventReport durable state or ephemeral live output.

Start​

Create an API key. Then set the two required variables.

Terminal
export PANTHEON_BASE_URL="https://pantheon-todo.alethiconsulting.com/pantheon-api"
export PANTHEON_API_KEY="PANTHEON_API_KEY"

Follow Your first agent in 10 minutes.

Using an AI coding agent​

Give your agent the docs link: https://pantheon-todo.alethiconsulting.com/docs/.

Include llms-full.txt for all page content. Use llms.txt for the page index.

Install the SDK. Copy a starter file from the chat components page.

Follow Build on Pantheon to publish your agent and connect your application.

Choose a guide​

GoalGuide
Build the complete first flowQuickstart
Create and revoke an API keyGet an API key
Diagnose an agent with BamiBami
Run Pantheon on your infrastructureSelf-host
Add a ready-made chat surfaceChat components
Execute tools in your applicationApplication tools
Manage state and concurrencySessions and runs
Render and reconnect streamsEvents
Recover from failuresErrors
Check current limitationsKnown issues
Inspect routes and schemasAPI reference

Pitfalls​

  • MCP tools do not run: Use application tools. Stored MCP server settings are not dispatched by the runtime.
  • A session rejects a second run: Finish, resume, or cancel the active run before sending another.
  • New contract examples are thin: Use the API reference with the task guides.

Search docs

Esc

Ask Bami

Bami answers inside your signed-in dashboard. Write your question here, then paste it into Bami with Cmd/Ctrl+/.