Skip to content

1.5 Requirements ​

What you'll learn

  • The Python / OS / network / disk requirements before embedding
  • Which extras to install for the features you want
  • A 7-line checklist to verify your environment is ready

Verify your environment before embedding Agentao.

Python version ​

  • Minimum: Python 3.10
  • Recommended: 3.11 or 3.12 (better tracebacks and perf)
  • 3.13 works but is not exhaustively verified

Package management ​

Agentao's own repo uses uv. When embedding, pip is fine — agentao is a standard PyPI package.

Starting in 0.4.0, pip install agentao ships only the embedding core; pick the install line that matches your usage:

bash
# Embedding host (`from agentao import Agentao`) — minimum closure
pip install agentao

# Need the web_fetch tool — adds beautifulsoup4 (web_search needs only a search key)
pip install 'agentao[web]'

# Need word-level Chinese memory recall — adds rjieba
pip install 'agentao[i18n]'

# CLI users (the `agentao` console script) — adds rich/prompt-toolkit/readchar/pygments
pip install 'agentao[cli]'

# uv users mirror the same pattern
uv add 'agentao[cli]'

LLM credentials ​

Agentao calls LLMs through an OpenAI-compatible interface. Configure at least one credential set:

Env varPurposeExample
OPENAI_API_KEYAPI key (required)sk-...
OPENAI_BASE_URLAPI endpoint (required)https://api.openai.com/v1
OPENAI_MODELModel id (required)gpt-5.4
LLM_TEMPERATURESampling temp (optional; unset = not sent, provider default)0.3
LLM_PROVIDERVendor tag (optional, default OPENAI)ANTHROPIC

All three — {PROVIDER}_API_KEY, {PROVIDER}_BASE_URL, and {PROVIDER}_MODEL — are required. LLMClient.__init__ raises ValueError immediately at startup if any is missing. Constructor args api_key=, base_url=, and model= can substitute for the env vars when embedding programmatically.

Verified compatible endpoints ​

Vendorbase_urlDefault model
OpenAI(default)gpt-5.4 / gpt-5 family
Anthropichttps://api.anthropic.com/v1claude-sonnet-4-6
Geminivia OpenAI-compatible gatewaygemini-flash-latest
DeepSeekhttps://api.deepseek.comdeepseek-chat
Self-hosted vLLMhttp://your-host:8000/v1depends on your deployment

OS support matrix ​

OSCore runtimeShell sandboxMCPNotes
macOS 13+✅ Full✅ sandbox-exec✅Recommended for dev
Linux✅ Full❌ No sandbox (recommend container / user namespace)✅Preferred for production
Windows⚠️ Basic❌ No sandbox⚠️ Some MCP servers are Unix-onlyPrefer WSL2

The shell sandbox is an optional extra layer (Part 6.2). Without it, run_shell_command is still gated by the permission engine and tool confirmation.

Network ​

  • Outbound: LLM calls hit your configured base_url; some tools (web_fetch, web_search) hit the public internet
  • Inbound: none. Agentao does not listen on a port; ACP mode uses stdio
  • MCP SSE servers: if you use SSE-based MCP servers, the host must reach their URLs

Disk layout ​

When embedded, Agentao reads/writes these paths:

PathPurposeCan disable?
<working_directory>/.agentao/Project-level config (MCP, permissions, memory)Constrained by permission rules
<working_directory>/AGENTAO.mdProject instructions (you write this)Skip the file and nothing loads
<working_directory>/agentao.logRuntime logDisable via custom logger
~/.agentao/User-level config, memoryRelocate or skip

In production, set <working_directory> to a per-tenant / per-session temp dir so sessions stay isolated (Part 7.1 covers this).

Optional dependencies ​

Capabilities split into extras post-0.4.0; combine them with comma syntax (agentao[cli,web]):

bash
# CLI / interactive UI (P0.9 demoted these from the bundled core)
pip install 'agentao[cli]'       # rich + prompt-toolkit + readchar + pygments
pip install 'agentao[web]'       # beautifulsoup4 — required for web_fetch
pip install 'agentao[i18n]'      # rjieba — word-level Chinese memory recall

# Heavier optional capabilities
pip install 'agentao[playwright]'  # local headless Chromium — JS-rendering
                                   # fallback for web_fetch. Also needs
                                   # `playwright install chromium`.
pip install 'agentao[tokenizer]'   # tiktoken — precise token accounting

# Meta extras
pip install 'agentao[full]'        # cli + web + i18n + playwright + tokenizer

The [pdf] / [excel] / [image] / [crypto] / [google] extras were removed in 0.4.12 (zero in-tree consumers — see docs/design/optimization-opportunities-review.md T1.1), and [crawl4ai] was replaced by [playwright] in 0.4.18. None of them resolve any more.

Without [web], the registry omits web_fetch entirely — the model will not see it in its tool schema, avoiding the trap where a model calls a tool that fails with a generic ImportError. web_search does not need [web]; it needs a search key (TAVILY_API_KEY, JINA_API_KEY, or DEEPSEEK_API_KEY with DEEPSEEK_BASE_URL on api.deepseek.com), and is omitted without one. Without [i18n], CJK memory recall splits Chinese text into character pairs instead of words (one-time warning): recall still works, with some extra false matches. If jieba is installed, it is used instead. On PyPy, on Windows on ARM64 and on other platforms without an rjieba wheel (FreeBSD, Linux riscv64, ...), [i18n] installs jieba instead. On free-threaded CPython 3.13t, rjieba builds from source and needs Rust; install jieba instead if you have none. The same holds on musl Linux (Alpine) for ppc64le and s390x. Japanese kana and Korean hangul are always split into character pairs. Latin queries skip the segmenter entirely so they pay no cost. The [cli] extra is required to run the agentao console script — bare installs print a friendly pip install agentao[cli] hint and exit 2. Two modes are exempt since 0.5.9: agentao --acp and agentao --login run from a bare install (the login uses plain terminal prompts without rich), which is what an ACP Registry client's uvx agentao@<version> gets.

See docs/migration/0.3.x-to-0.4.0.md for the full 0.3.x → 0.4.0 migration matrix.

Version compatibility ​

  • Agentao is currently in 0.x (Beta). Breaking changes can land between minor versions — pin exact versions:
    agentao>=0.5.0,<0.6
  • This guide targets v0.5.0. Version-specific notes will be flagged inline.
  • 0.5.0 is a removal release: agentao.harness, agentao.session and the eight legacy callback kwargs on Agentao(...) are gone, and two changes never warned — project_root is required on agentao.embedding.sessions, and Agentao(...) takes only its first five parameters positionally. Coming from 0.4.x, read docs/migration/0.4.x-to-0.5.0.md first.
  • The single break in 0.4.0 was the dependency split (P0.9). 0.3.x users who want zero behaviour change can use pip install 'agentao[full]'.

Checklist ​

bash
# All of these should succeed
python --version                        # >= 3.10
pip show agentao | grep Version          # your pinned version
echo $OPENAI_API_KEY | head -c 10       # key prefix visible
echo $OPENAI_BASE_URL                   # must be non-empty
echo $OPENAI_MODEL                      # must be non-empty
agentao --help                          # CLI reachable (optional)
python -c "from agentao import Agentao; print('OK')"
python -c "from agentao.transport import SdkTransport; print('OK')"

Environment green — move on to Part 2 for actual integration work.

TL;DR ​

  • Python ≥ 3.10 required; 3.11 / 3.12 recommended.
  • 3 env vars required: OPENAI_API_KEY / OPENAI_BASE_URL / OPENAI_MODEL (constructor args also work).
  • Default install is embedding-only. Add extras as needed: [web], [i18n], [cli], [playwright], [tokenizer], [full] (everything).
  • No inbound port — agent is a library or stdio subprocess; outbound goes to your LLM endpoint and any tool URLs.
  • Pin a version range in production: agentao>=0.5.0,<0.6.

→ Part 2 · Python In-Process Embedding