Structured View Quickstart
The default AoE session is a Structured view session running the bundled aoe-agent
adapter against Otari, Mozilla AI’s model gateway. Nothing global gets installed, no
[acp] section has to be hand-written, and the only thing you supply is the Otari key.
aoe setup
aoe setup prints every setting it wrote, how to undo it, and the session command that fits
this machine; it starts nothing itself. Where it installed the bundled adapter, that command
is:
aoe add . --agent aoe-agent --structured-view \
--model openai-compatible:anthropic/claude-fable-5
Two things have to be in place first. The model id is what routes the turn through Otari, so
a session needs OTARI_API_KEY (Create an Otari account
below); a direct-provider model such as claude-opus-4-7 uses that provider’s key instead,
and Choosing the model has the other forms. And the bundled adapter
has to be installed: if no install was agreed to, aoe setup falls back to an agent that is
already on the machine and names it in the command it prints. On a machine with no such
agent, it keeps aoe-agent and prints the install command, so install the adapter before
running this. With [acp] restrict_agents on, only agents in acp.allowed_agents are
chosen; if none of them is available, setup stops and names the list instead of saving a
default the supervisor would refuse.
What aoe setup does
| Step | Effect |
|---|---|
| Detect | Reads what aoe agents and aoe acp doctor already report: which agents resolve on this machine, and whether the bundled adapter is installed. |
| Default the agent | Writes acp.default_agent = "aoe-agent", the one adapter AoE ships and maintains, while nothing is saved there. A saved value is kept, and --agent is how you change it. An agent acp.allowed_agents does not permit is never suggested, saved, or installed. |
| Default the view | Writes acp.structured_view = "structured" while it is still auto. terminal and off are left alone. |
| Pick the model | Unless a detected OPENAI_BASE_URL gateway supplies its own model ids, writes acp.acp_defaults.aoe-agent.model = "openai-compatible:anthropic/claude-fable-5" while that agent has no model. Without it the adapter’s own default is an Anthropic id your Otari key cannot authenticate. The model is written before a key exists, so exporting OTARI_API_KEY afterwards is enough. A model you set for aoe-agent is kept. |
| Install the adapter | Offers the bundled aoe-agent adapter with consent. It installs into the data dir with bundled Node’s npm, exactly as aoe acp doctor --fix --adapter aoe-agent does. |
| Otari guidance | With no gateway credential present, prints the account steps below. Setup never blocks on it. |
Every step except the write looks at this machine, while the write reaches the host its Daemon
runs on. With AOE_DAEMON_URL set to another host those are two different machines, so
aoe setup stops before doing anything and asks to be run there instead.
Flags:
--quicknever prompts. The adapter is installed only with--install-adapteror anacp.allow_agent_install = truealready inconfig.toml; otherwise the install command is printed.--install-adapteris the consent, so an unattended run can install in one go.--agent <name>defaults to an agent that is already on this machine instead of the bundled one. Reusingclaude,codex,opencodeand friends keeps their existing login and needs no provider key of its own.
Re-running is safe: a setting already at the target value is not written again, and a run
without --agent never overwrites a default you saved (including one written by an earlier
--agent run). To undo, edit config.toml (see
aoe settings explain acp.default_agent) and remove the key, which restores the built-in
claude-code, or set it to the agent you want.
Create an Otari account
aoe-agent needs a provider key; Otari is the gateway AoE defaults to.
- Create a free account with GitHub, Google or email: https://otari.ai/dashboard/#/signup
- Create an API key in the dashboard.
- Export it where
aoe serveruns. The Otari modelaoe setupsaved is already in place, so nothing else needs configuring:export OTARI_API_KEY="paste-the-key-here" - Start a session, pinning an id from Otari’s catalogue if you want one other than the saved
model:
aoe add . --agent aoe-agent --structured-view \ --model openai-compatible:anthropic/claude-fable-5
Otari serves an OpenAI-compatible API at https://api.otari.ai/api/v1 (the /api prefix is
part of the path). Its model ids are vendor-namespaced, so a gateway id always carries the
openai-compatible: prefix described below.
- Getting started: https://docs.otari.ai/getting-started/quickstart
- Support: Mozilla AI Discord at https://discord.gg/4gf3zXrQUc
OTARI_API_KEY and OTARI_BASE_URL are on the aoe-agent provider allowlist, so the Daemon
passes them to the adapter without an environment override. The key is never printed; when
it is unset, the adapter’s warning names the gateway base URL it would have used.
Choosing the model
The model id selects the provider. aoe-agent reads it from AOE_AGENT_MODEL, which AoE
sets per session from --model, the model picker, or acp.acp_defaults; the Daemon forwards
only allowlisted provider variables, so exporting AOE_AGENT_MODEL in the shell does not
reach the adapter. The forms, all still supported:
| Model id | Provider | Request model |
|---|---|---|
claude-opus-4-7 |
Anthropic | claude-opus-4-7 |
anthropic:claude-sonnet-4-5 |
Anthropic | claude-sonnet-4-5 |
gpt-5 |
OpenAI | gpt-5 |
openai:gpt-5-mini |
OpenAI | gpt-5-mini |
gemini-2.5-pro |
gemini-2.5-pro |
|
google:gemini-2.5-flash |
gemini-2.5-flash |
|
openai-compatible:anthropic/claude-fable-5 |
OpenAI-compatible gateway | anthropic/claude-fable-5 |
| anything else | Anthropic, unchanged | the id as given |
An openai-compatible: id keeps everything after the prefix as the request’s model, so
vendor-namespaced gateway ids need no rewriting. The endpoint and key come from the same
pair, chosen by its key: OTARI_API_KEY (with OTARI_BASE_URL if you set one) else
OPENAI_BASE_URL with OPENAI_API_KEY for a gateway you already run, else Otari’s root with
a missing key reported. aoe setup detects by that rule too, so a lone OTARI_BASE_URL
beside a complete OpenAI pair leaves the pair in charge. Both are per adapter, not per
session, so they are environment, not settings.
aoe setup and the first-run wizard therefore save an Otari model for aoe-agent when only
OTARI_API_KEY is present, so the first Structured session reaches Otari without a --model
flag. Any --model or picker choice still wins over it.
Requirements
- Node.js 22.6 or newer for
aoe-agent, which runs from TypeScript sources with--experimental-strip-types.aoe acp doctor --fixdownloads the pinned runtime when none qualifies. - A provider key: Otari via
OTARI_API_KEY, orANTHROPIC_API_KEY,OPENAI_API_KEYorGOOGLE_GENERATIVE_AI_API_KEY.
See Structured View for the full agent list, provider allowlists and troubleshooting.