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:
# 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 var | Purpose | Example |
|---|---|---|
OPENAI_API_KEY | API key (required) | sk-... |
OPENAI_BASE_URL | API endpoint (required) | https://api.openai.com/v1 |
OPENAI_MODEL | Model id (required) | gpt-5.4 |
LLM_TEMPERATURE | Sampling temp (optional; unset = not sent, provider default) | 0.3 |
LLM_PROVIDER | Vendor tag (optional, default OPENAI) | ANTHROPIC |
All three —
{PROVIDER}_API_KEY,{PROVIDER}_BASE_URL, and{PROVIDER}_MODEL— are required.LLMClient.__init__raisesValueErrorimmediately at startup if any is missing. Constructor argsapi_key=,base_url=, andmodel=can substitute for the env vars when embedding programmatically.
Verified compatible endpoints
| Vendor | base_url | Default model |
|---|---|---|
| OpenAI | (default) | gpt-5.4 / gpt-5 family |
| Anthropic | https://api.anthropic.com/v1 | claude-sonnet-4-6 |
| Gemini | via OpenAI-compatible gateway | gemini-flash-latest |
| DeepSeek | https://api.deepseek.com | deepseek-chat |
| Self-hosted vLLM | http://your-host:8000/v1 | depends on your deployment |
OS support matrix
| OS | Core runtime | Shell sandbox | MCP | Notes |
|---|---|---|---|---|
| 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-only | Prefer WSL2 |
The shell sandbox is an optional extra layer (Part 6.2). Without it,
run_shell_commandis 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:
| Path | Purpose | Can disable? |
|---|---|---|
<working_directory>/.agentao/ | Project-level config (MCP, permissions, memory) | Constrained by permission rules |
<working_directory>/AGENTAO.md | Project instructions (you write this) | Skip the file and nothing loads |
<working_directory>/agentao.log | Runtime log | Disable via custom logger |
~/.agentao/ | User-level config, memory | Relocate 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]):
# 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 + tokenizerThe
[pdf]/[excel]/[image]/[crypto]/[google]extras were removed in 0.4.12 (zero in-tree consumers — seedocs/design/optimization-opportunities-review.mdT1.1), and[crawl4ai]was replaced by[playwright]in 0.4.18. None of them resolve any more.
Without
[web], the registry omitsweb_fetchentirely — 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_searchdoes not need[web]; it needs a search key (TAVILY_API_KEY,JINA_API_KEY, orDEEPSEEK_API_KEYwithDEEPSEEK_BASE_URLonapi.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. Ifjiebais installed, it is used instead. On PyPy, on Windows on ARM64 and on other platforms without anrjiebawheel (FreeBSD, Linux riscv64, ...),[i18n]installsjiebainstead. On free-threaded CPython 3.13t,rjiebabuilds from source and needs Rust; installjiebainstead 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 theagentaoconsole script — bare installs print a friendlypip install agentao[cli]hint and exit 2. Two modes are exempt since 0.5.9:agentao --acpandagentao --loginrun from a bare install (the login uses plain terminal prompts withoutrich), which is what an ACP Registry client'suvx 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.sessionand the eight legacy callback kwargs onAgentao(...)are gone, and two changes never warned —project_rootis required onagentao.embedding.sessions, andAgentao(...)takes only its first five parameters positionally. Coming from 0.4.x, readdocs/migration/0.4.x-to-0.5.0.mdfirst. - 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
# 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.