Skip to main content
 ███████████     ███████     █████████
░░███░░░░░███  ███░░░░░███  ███░░░░░███
 ░███    ░███ ███     ░░███░███    ░░░
 ░██████████ ░███      ░███░░█████████
 ░███░░░░░███░███      ░███ ░░░░░░░░███
 ░███    ░███░░███     ███  ███    ░███
 ███████████  ░░░███████░  ░░█████████
░░░░░░░░░░░     ░░░░░░░     ░░░░░░░░░

An agent out of the box. A framework for your own agent-native applications.

PyPI Downloads Python License GitHub Stars

Quick Start

OPENAI_API_KEY=<api-key> uvx boscli ask "how are you" --model openai/gpt-4o

Install uv to get uvx, or install the CLI permanently with uv tool install boscli / pipx install boscli.

Using a different provider? See LiteLLM's provider docs for the right BOS_MODEL prefix and required environment variables. For example, using a deepseek model

DEEPSEEK_API_KEY=<api-key> uvx boscli ask "how are you" --model deepseek/deepseek-v4-pro

pip install bos-ai installs the library — it does not provide the boscli command. The CLI ships as the boscli distribution. See Embedding to drive BOS from your own application.

Project Setup

mkdir my-agent && cd my-agent
boscli init          # guided setup: purpose, topology, model — writes a runnable baseline
boscli gateway start # start the agent runtime
boscli tui           # connect the terminal UI

Embedding

pip install bos-ai is a library install: about 14 MB, no console script, no terminal UI, no gateway. Drive an agent from your own application:

from bos.config import Workspace

workspace = Workspace(workspace=".", bos_dir="/var/lib/myapp", config=my_config_dict)
workspace.bootstrap_platform()

async with workspace.harness() as harness:
    agent = await harness.create_agent(kind="assistant")
    result = await agent.run(chat_id, "hello")

Configuration is a plain dict — load it from a database, environment, or a control plane; nothing requires a TOML file on disk. examples/embed_fastapi.py is a runnable version that serves turns from a FastAPI route, registers its own LLM provider, and touches no file.

Install extras

Install Adds
bos-ai The library: bos.core, bos.config, plugins
bos-ai[litellm] The built-in LLM provider. Without it, register your own with @ep_provider
bos-ai[gateway] The gateway process and the Telegram/Lark channels
bos-ai[search] The built-in web-search and page-fetch tools
bos-ai[lark] The Lark/Feishu SDK
bos-ai[cli] The CLI's dependencies — run it with python -m bos.cli
bos-ai[all] Everything

The supported surface

  • bos.core — AgentHarness, Agent, AgentResult, the ep_* extension points, and the port protocols (LLM, ChatStore, Consolidator, ToolSet, TurnInterceptor, PromptProvider, TurnEventSink)
  • bos.config — Workspace, RootConfig, validate_config

Names prefixed with _ are re-exported for extensions and are not stable; they are not part of the embedding contract.

Docs

See the documentation site for tutorials, architecture, extension points, and the configuration reference.

Building on BOS with an AI agent? llm-full.md is a single dense, code-grounded reference covering every mechanism — configuration, extension points, plugins, channels, skills, the CLI, and the runtime — in one file. boscli init drops a copy into every scaffolded project.

License

See LICENSE.

Release files for bos-ai 2.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bos-ai 2.0.0
File Size Uploaded
bos_ai-2.0.0.tar.gz 704.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for bos-ai 2.0.0
File Interpreter ABI Platform
bos_ai-2.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 997.9 kB

Release files / bos_ai-2.0.0.tar.gz

Download URL bos_ai-2.0.0.tar.gz
Size 704.1 kB
Tags Source
SHA-256 checksum
How to use checksums
a5a05b9d39fcadee8415bcd07ee979c56bf70e67c9f14a74088edbb20f2e79fd
BLAKE2b-256 checksum
How to use checksums
faf636df0840705c6572161affdc205006e106c9dc9369158966232fe138ad24
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 19, 2026.

Transparency log

Release files / bos_ai-2.0.0-py3-none-any.whl

Download URL bos_ai-2.0.0-py3-none-any.whl
Size 293.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
92a0610d26a720e32e437104c2b243828a1eea175e063753eede5d68f8abed38
BLAKE2b-256 checksum
How to use checksums
e47ce5b70513abe467414a3f519e1f8714d8e2484103aac0b500fef89dfc2731
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 19, 2026.

Transparency log

Release history Release notifications | RSS feed

2.3.0

2 release files

2.2.0

2 release files

2.1.0

2 release files

This release

2.0.0 This release

2 release files

1.12.0

2 release files

1.10.0

2 release files

1.9.0

2 release files

1.8.0

2 release files

1.7.0

2 release files

1.6.0

2 release files

1.5.0

2 release files

1.4.0

2 release files

1.3.0

2 release files

1.2.0

2 release files

1.1.0

2 release files

1.0.0

2 release files

0.2.1

2 release files

0.1.1

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page