Install AGENTASIAN from scratch
Status: Ready
Truth label: Limited
Audience: New builder, Fleet operator
Reader outcome: Take an empty machine to a working control plane, a registered project, one completed task, and a local Academy site.
Last verified: 2026-09-12
Read this first
The curriculum teaches each setup step in depth inside its own lesson. This page is the order those lessons go in. The handbook holds the reference detail: every configuration variable in Configuration reference, every start and supervision option in Running the stack, and one page per Cortex feature. Every step states its outcome, then links to the lesson that owns the detail. Follow the steps in sequence the first time. Come back to a single step later when you change one thing.
This page stops at one completed task. The end-to-end walkthrough continues from there through memory, voice, agents, projects, methods, schedules, research, quality, and operations, with worked cases that use them together.
Four questions come up before every install. The short answers are here, and the rest of the page works through them.
| Question | Short answer |
|---|---|
| Do we clone repositories? | Yes. One application repository is required. The Academy repository is separate and optional. |
| Do we add voices? | No, not to install. The built-in voice pack supplies baseline lenses and registers. Custom packs are a later choice. |
| Do we update configuration? | Yes. Copy .env.example to .env and set only the services you intend to use. Nothing else needs editing to start. |
| Where does configuration live? | In .env at the application repository root, read by the launch scripts. Never in a lesson, a prompt, or a committed file. |
What you are installing
AGENTASIAN has four parts, described in Brain, Forge, Cortex, and workers:
- Forge Central on port 8080 holds task state and project registration.
- Brain on port 8081 handles reasoning, retrieval, and chat.
- Cortex on port 3000 is the operator interface in the browser.
- A worker runs a coding CLI against a repository checkout. Central does not start it for you.
The Academy site is a fifth, separate thing. It runs on port 3040 and serves these lessons. It is not part of the control plane and the control plane runs without it.
Prerequisites
| Requirement | Needed for | Why |
|---|---|---|
| Python 3.11 or newer | Brain, Forge, worker | The application installs as an editable Python package. |
| Node.js 20 or newer | Cortex, Academy site | Both front ends build on Node 20. |
| Git | Both repositories | The install starts with a clone. |
| One coding CLI, installed and logged in | Worker | The worker executes through a CLI it discovers on PATH. |
| A trusted test repository | First task | Safe permission limits the CLI. It is not an operating-system sandbox. |
Do not start with a live client checkout, a home directory, or a broad parent folder. Use a disposable repository until the whole path works end to end.
Step 1: Clone the repositories
Outcome: both repositories exist side by side on disk.
Why side by side: later configuration lists absolute paths for allowed project roots and attachment roots. One predictable parent directory keeps those lists short and reviewable.
Both repositories are private. You receive the exact clone URLs with repository access, so the commands below use link tokens rather than published addresses.
mkdir -p ~/airwave
cd ~/airwave
git clone [application-repo-url] agent_asian
git clone [academy-repo-url] agent_asian_academy
| Repository | Required | What it gives you |
|---|---|---|
agent_asian | Yes | Brain, Forge Central, Cortex, the worker, the launch scripts, and .env.example. |
agent_asian_academy | No | This curriculum and the local Academy site. Clone it when you want the lessons offline or want to edit them. |
If you only want to read the lessons, skip to Step 8. Nothing in the control plane depends on the Academy repository.
Step 2: Create the environment and install
Outcome: the application is importable and its commands run.
Why a virtual environment: the install is editable and pulls service dependencies. Keeping it out of the system interpreter lets you delete and rebuild it without touching the host.
From the application repository root on macOS or Linux:
cd ~/airwave/agent_asian
python3 -m venv .venv-linux
.venv-linux/bin/python -m pip install -e ".[dev]"
On Windows PowerShell:
cd ~\airwave\agent_asian
py -3.11 -m venv .venv
.venv\Scripts\python.exe -m pip install -e ".[dev]"
Full detail is in Run your first task.
Step 3: Update configuration
Outcome: a .env file that names only the services you intend to use.
Why: the launch scripts read .env. Defaults bind to loopback and leave
optional services off, so an unedited file gives you a single-host install with
no cloud provider. You add keys to widen that boundary, and each key widens it
in a specific direction.
cp .env.example .env
Edit .env at the application repository root. Set only what a step below
actually needs.
| Variable | Set it when | Why it exists |
|---|---|---|
AA_BIND_HOST | Workers run on other machines you own | Defaults keep services on loopback. 0.0.0.0 binds to the LAN. Do not set it for a single-host install. |
AA_API_TOKEN | You set AA_BIND_HOST | Non-health routes require this bearer for non-loopback access. Generate a random value. |
AA_ALLOWED_ORIGINS | Cortex is opened through a LAN host | An exact origin list constrains browser calls. A wrong entry is the usual cause of a Cortex connection error. |
SE_MANAGER_ALLOWED_PROJECT_ROOTS | Central accepts remote project registration | Limits which absolute paths can be registered as projects. The allowlist must contain the path you submit in Step 6. |
AA_ATTACHMENT_ROOTS | You attach files or folders in Cortex Chat | Bounds which directories chat attachments may be read from. |
| Chat provider credentials | You use OpenAI, Anthropic, or Google for chat | Without one, Brain chat runs against a local Ollama service. Provider choice decides whether prompt material leaves owned infrastructure. |
| Embedding provider and model | You store knowledge collections | Chat and embedding models are configured separately. |
VOICE_PACK_DIR | You wrote a custom voice pack | Names the directory Brain loads lenses and registers from. Leave it alone to use the built-in pack. |
INFLUENCE_LIBRARY_DIR | You maintain a user influence pack | Names the directory holding influence_pack.toml. |
Three rules apply to every value:
.envis never committed. Keep real tokens out of shell history you share, screenshots, prompts, and Academy examples.- Changing the embedding provider or model after knowledge is stored breaks the collection. Brain records embedding identity per persistent collection and rejects a mismatch. Read Separate chat models from embedding models before you change either.
- An unexpected
SE_MANAGER_value can select a data root you did not intend. Confirm the resolved data root after any change to that prefix.
Provider selection tradeoffs are in Choose Ollama, OpenAI, Anthropic, or Google for chat. Host boundary detail is in Trusted LAN deployment.
Step 4: Start the services
Outcome: Forge Central, Brain, and Cortex answer on their ports.
Why check health before anything else: a worker that cannot reach Central fails in a way that looks like a task problem. Prove the services first.
./run-all.sh
This starts Forge Central on 8080, Brain on 8081, and Cortex on 3000. It does not start a worker. Confirm the two APIs:
curl http://127.0.0.1:8080/health
curl http://127.0.0.1:8081/health
Both should report ok. Health routes stay reachable by design, so a healthy
response is not proof that protected routes are closed. If Cortex loads but
cannot call the services, work through
Troubleshoot Cortex connection errors.
Step 5: Start a worker
Outcome: one worker appears online in Cortex with a known engine and a known permission ceiling.
Why it is a separate step: the worker is the only part that executes code in your repository. Its host, its login, and its permission ceiling are decisions you make once, at provisioning time, not inside a prompt.
Install the coding CLI on the worker host and complete its interactive login as the same operating-system user that will run the worker. Confirm the binary is on that process's PATH.
On the same machine as the services:
./run-worker.sh
On a separate machine you own, pass the Central and Brain URLs:
./run-worker.sh http://central-host:8080 http://central-host:8081
When you start the worker module directly, set an explicit engine, a stable
--name, an explicit default permission, and an explicit maximum permission.
The name matters as soon as a second worker can run on the same host, because
identity is hostname plus instance name. The ceiling matters because a task
requesting more authority is clamped to it.
Permission intent runs safe, write, yolo from least to most authority.
Use safe for inspection, write for reviewed edits, and keep yolo off
trusted work. Safe is not an operating-system sandbox: verification commands
still execute repository code.
Per-engine detail is in Install a Claude Code worker and Install a Codex worker. Permission mapping is in Map safe, write, and yolo permissions. Running more than one worker on a host is covered in Multiple workers on one machine.
Open http://127.0.0.1:3000 and confirm the worker is online before
continuing.
Step 6: Register the first project
Outcome: Central knows a name, a path, and a supervision mode.
Why the path is the hard part: Central stores the submitted path literally and does not translate it between operating systems. A path that works on one worker can fail on another.
In Cortex, open Projects, select New project, and provide a clear name, the absolute path of your trusted test repository as it exists on the worker that will execute the work, and a supervision mode. Keep the default checkpoint mode so completed work holds for your review.
The browser cannot pick an arbitrary local directory, so paste the reviewed
absolute path. If Central is accepting remote registration, that path must
already appear in SE_MANAGER_ALLOWED_PROJECT_ROOTS from Step 3.
Then confirm the displayed path and mode, and confirm the intended worker can reach that exact path. Full detail is in Register a project in Cortex.
Step 7: Add voices, or skip this
Outcome: you know whether you need to do anything here. Most first installs do not.
Why it is optional: Brain loads reasoning lenses and voice registers from
modular TOML files in the directory named by VOICE_PACK_DIR, and the built-in
pack supplies baseline definitions without personal writing. A fresh install
already has working lenses and registers.
Add something here only when one of these applies.
| You want | Add | Where |
|---|---|---|
| Your own analytical lenses or delivery registers | A custom voice pack | TOML files in the directory named by VOICE_PACK_DIR |
| A personal influence library | An influence pack | influence_pack.toml in the directory named by INFLUENCE_LIBRARY_DIR |
| Retrievable writing samples | Voice examples | The dedicated voice_examples collection, or exemplars/*.toml inside a pack |
Two boundaries apply the moment you add anything.
A voice example carries an approval state and a privacy class. New examples
need explicit approval before retrieval. The privacy values are local-only
and cloud-allowed, and Brain excludes local-only examples from
cloud-provider prompts. Locality is derived from the resolved inference host,
so a remote Ollama endpoint still counts as a network machine.
A register may change expression only. Its contract forbids adding, removing, or altering facts, numbers, quotations, citations, recommendations, commitments, or uncertainty for style. If a register makes a thin answer sound certain, the answer failed the contract.
Legacy personal aliases have been removed. Brain warns on standard error when an obsolete configuration key is supplied, so read startup output after you edit a voice variable. Background is in Use reasoning lenses and voice registers independently and Build a safe voice-example library.
Step 8: Run the Academy site
Outcome: these lessons served locally on port 3040.
Why 3040: the port is reserved for the Academy so it never collides with Cortex on 3000, Forge on 8080, or Brain on 8081.
cd ~/airwave/agent_asian_academy
npm install
npm start
The site opens at http://localhost:3040. To serve the production bundle
instead:
npm run build
npm run serve
To run it as a container on the same port:
docker compose up -d --build
The container serves the built files through Nginx, which binds
0.0.0.0:3040, and Compose publishes 3040:3040 on every host interface.
If you reach the container at anything other than localhost:3040, set
SITE_URL before you build. Docusaurus bakes the site URL into the bundle at
build time, so it has to be a build argument rather than a runtime value:
SITE_URL=http://academy-host:3040 docker compose up -d --build
Leave it unset for the local default. A wrong value does not stop the site from loading, but it puts the wrong address in the sitemap and in canonical link tags.
Why both servers bind 0.0.0.0: the Docusaurus CLI defaults --host to
localhost for start and serve. A loopback bind accepts connections only
from inside its own machine, so a container published with -p 3040:3040
would map the host port to a socket nothing outside the container can reach,
and the page would fail to load with no error in the container logs. Both
scripts therefore pass --host 0.0.0.0, and the container's Nginx server
binds 0.0.0.0:3040 for the same reason.
Binding every interface also puts the site on your local network. Serve it on a trusted network only. The Academy is static curriculum with no secrets, but the same rule from Step 3 applies: do not port-forward it to the public internet.
Before you commit a content change, run the full gate:
npm run check
That command chains content validation, the Python unit tests, TypeScript type checking, and the production build.
Verify the install
Work down this list. Each line is a separate failure you want to find now rather than during real work.
curl http://127.0.0.1:8080/healthreportsok.curl http://127.0.0.1:8081/healthreportsok.- Cortex loads at
http://127.0.0.1:3000without a connection error. - The worker shows online with a recent heartbeat and the expected engine.
- The registered project path exists on that worker.
- One narrow task completes end to end. Ask for a single new file, choose
writepermission, and give a verification command that already exists in the repository. - The finished run shows final state, worker, engine, run id, files changed, and verification result.
The full first-task walkthrough, including what to check when a task never starts, is in Run your first task.
Current limits
This install path assumes one trusted operator, trusted repositories, and machines you own. It is not a public multi-tenant deployment.
- Safe permission limits the coding CLI. It is not an operating-system sandbox, and verification commands can execute repository code.
- Loopback binding reduces network reach but does not make a co-hosted process trustworthy.
- The fleet bearer is not complete role separation, and current scope controls do not prove confidential client isolation.
- Do not port-forward Brain, Forge, or Cortex to the public internet.
Read Trusted LAN deployment and The local-first API boundary before you widen any boundary set in Step 3.
Where to go next
- New to the system: What AGENTASIAN is.
- Choosing where work runs: Local and cloud execution engines.
- Picking a route through the curriculum: Learning paths.
- Looking for one specific topic: Article catalog.
- Continuing past the first task, in order: End-to-end walkthrough.
- Configuring or using a specific feature: Handbook overview.
- Every feature in one table: Feature catalog.