Xpander.ai is the platform for building production AI agents that connect to enterprise APIs, data, and channels. There are two ways to start building AI agents:Documentation Index
Fetch the complete documentation index at: https://docs.xpander.ai/llms.txt
Use this file to discover all available pages before exploring further.
- Agent Studio: a visual app at app.xpander.ai where you click together instructions, tools, and knowledge
- SDK + CLI: the same platform, driven from Python
Install
You need all three steps. The CLI and SDK are separate packages with different runtimes: the CLI ships via npm, the SDK via pip.Quickstart
10-minute scaffold-to-deploy walkthrough. Start here once youβre installed.
When to use code
Agent Studio covers most agent-building. Reach for the SDK when one of these applies:- Use a specific framework. Youβre already invested in Agno, OpenAI Agents SDK, LangChain, or AWS Strands.
- Wrap a private API as a tool. Decorate a Python function with
@register_tool; the SDK generates the JSON schema from your type hints. Example: alookup_customer(id)tool that hits your internal billing service. - Custom dependencies. Numerical libraries, system packages, your own internal SDKs: anything the serverless runtime doesnβt ship. Deploy as a container instead.
- Embed in an existing service. Run an agent inside code you already deploy (a FastAPI worker, a cron job, a Slack bot) without standing up a separate process.
- Programmatic scale. Spawn many tasks at once. Example: backfill structured fields across 10k support tickets, or run an eval suite that compares two agent versions on a fixed prompt set.
How it fits together
Xpander splits into two halves:- The control plane (cloud or self-hosted) owns the agentβs identity: instructions, tools, model + credentials, knowledge bases, session storage.
- Your process owns the execution loop: the framework that decides what to call and when.
Backend, which fetches the agent and returns a dict ready to splat into your frameworkβs Agent constructor.
Agent class with arguments xpander provides.
What youβll work with
A typical project pulls in three pieces:- Python SDK (
xpander-sdk): runtime classes (Backend,Agents,Task) and decorators (@on_task,@register_tool). The class-by-class breakdown lives in Core Concepts. - CLI (
xpander): scaffolds projects, deploys containers, streams logs, manages auth. Every command is in the CLI Reference. - A framework: Agno is the recommended path because the SDK does the most wiring for it. OpenAI Agents SDK, LangChain, and AWS Strands are also supported; the Frameworks overview compares whatβs auto-wired vs. manual for each.
xpander agent new, the CLI generates a starter project in your current directory. Hereβs what it creates:
xpander_handler.py is the only file youβll edit.
What to read next
Quickstart
Scaffold and run your first agent locally in under 10 minutes.
Core Concepts (SDK lens)
The SDK class names mapped onto agents, tasks, threads, tools, and memory.
Frameworks
Pick a framework and see what xpander wires up for you.
SDK Reference
Per-module class and method documentation.

