Getting Started¶
This page takes you from nothing to a running, persistent agent project. For a guided, example-first path, follow the Tutorials; this page is the quick linear version.
Prerequisites¶
- Python ≥ 3.13.
- An LLM API key for a provider LiteLLM supports
(e.g.
OPENAI_API_KEY,GEMINI_API_KEY,ANTHROPIC_API_KEY).
Install¶
Or run without installing, using uv:
Optional extras: pip install 'bos-ai[search]' (Tavily web search), 'bos-ai[lark]'
(Lark/Feishu channel), or 'bos-ai[all]'.
First run (no project)¶
The model string is provider/model. The provider prefix selects a custom
provider if one is registered under that name; otherwise
it falls back to LiteLLM, which reads the matching *_API_KEY environment variable. For a
DeepSeek model, for example:
Create a project¶
mkdir my-agent && cd my-agent
boscli init # guided setup: purpose, archetype, provider/model
boscli gateway start # start the agent runtime
boscli tui # connect the terminal UI
boscli init writes a runnable baseline under .bos/:
.bos/
├── config.toml # your one config file
├── .env # provider keys and secrets
├── agents/ # add specialist agents here (*.md / *.toml)
├── extensions/ # add custom tools here (*.py)
└── skills/ # add skills here (dirs with SKILL.md)
To see every option documented inline, run boscli init --minimal in an empty directory —
it emits the fully-commented reference config.
Verify your setup¶
Grow the project¶
- Add a tool — drop a Python file with an
@ep_toolinto.bos/extensions/. See Add a custom tool. - Add specialists — create
agents/researcher.mdand let your main agent delegate to it. See Delegate to sub-agents. - Reach the agent over chat — add a Telegram or Lark channel. See Connect a channel.
- Tune behavior — edit
.bos/config.toml. See the Configuration reference.
Where to go next¶
- Tutorials — a hands-on path from your first agent to a packaged, shareable extension.
- Concepts — how the runtime, agents, actors, memory, and skills fit together.
- Configuration — the complete
config.tomlreference. - Extending BOS — write tools, plugins, channels, and providers.