- Xpander Chat (chat.xpander.ai on xpander cloud, your own domain when self-hosted): assemble an agent from approved skills, instructions and knowledge
- SDK + CLI: the same runtime, driven from Python
tools, the name the agent loops use for them.
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-running-agent walkthrough. Start here once you’re installed.
When to use code
Xpander Chat covers most cases. Reach for the SDK when one of these applies:- Run a specific agent loop. You’re already invested in Agno, OpenAI Agents SDK, LangChain, or AWS Strands.
- Wrap a private API as a skill. Decorate a Python function with
@register_tool; the SDK generates the JSON schema from your type hints. Example: alookup_customer(id)skill that hits your internal billing service. - Embed in an existing service. Run an agent inside code you already deploy (a FastAPI service, 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
The SDK path splits into two halves:- The control plane (cloud or self-hosted) owns the agent’s identity: instructions, skills, model + credentials, knowledge bases, session storage.
- Your process owns the execution loop: the agent loop that decides what to call and when.
Backend, which fetches the agent and returns a dict ready to splat into your agent loop’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, runs agents locally, manages auth. Every command is in the CLI Reference. - An agent loop: 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 SDK integrations 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 a project, run the handler locally, send it a task.
Core Concepts (SDK lens)
The SDK class names mapped onto agents, tasks, threads, skills, and memory.
SDK integrations
Pick an agent loop and see what xpander wires up for you.
SDK Reference
Per-module class and method documentation.

