How You Actually Start Building With Aitherium Managed Agents Today
The last post, 29 Google ADK recipes became 23 answering managed agents, explained how the importer turned someone else's recipes into packs without running their code. This post skips all of that. It is for community engineers who want to build on the same pieces this week. Every command below was run before it was written down, and every gap is labelled as a gap.
What is live right now
There is one public hostname, twins.aitherium.com. You can probe it yourself:
curl -s -A "Mozilla/5.0" https://twins.aitherium.com/health
# 200 {"status":"healthy","agent":"financial-advisor-financial_coordinator",
# "llm_backend":"desktop","version":"3.8.92", ...}
curl -s -o /dev/null -w "%{http_code}\n" -A "Mozilla/5.0" \
-X POST -H "Content-Type: application/json" -d '{"message":"hi"}' \
https://twins.aitherium.com/chat
# 401
The -A matters: the edge in front of the tunnel rejects some default client user agents.
Behind that hostname is one awdk server process, not 23. It starts with one default identity. The other agents live as directories in its agent store, one per twin, 23 in total. A chat request names the agent it wants, and the server builds that agent on first use and caches it:
POST /chat
Authorization: Bearer <key>
{"message": "Draft a savings plan for a 2-person household",
"agent": "llm-auditor-critic_agent",
"session_id": "optional, to resume"}
The model calls do not leave our hardware. They go to our own scheduler, which fronts local models. That is why a first turn can take minutes: the previous post measured 22 to 420 seconds for a first turn across the 23.
A durable agent is a unit file, not a terminal you leave open
The twins server runs as a podman quadlet: a small file that systemd turns into a service. This is the shape of ours, with the host-specific mount paths replaced:
[Unit]
Description=managed agent twins (awdk server)
[Container]
ContainerName=awdk-twins
Image=<an image with Python 3.10+>
Entrypoint=python
Exec=-m adk.server --backend local --host 0.0.0.0 --port 8079 --identity financial-advisor-financial_coordinator
WorkingDir=/opt/awdk
Environment=PYTHONPATH=/opt/awdk
Environment=AITHER_CORE_LLM_URL=https://<your-llm-endpoint>/v1
Environment=AITHER_MODEL=<model-name>
Environment=AITHER_LLM_TIMEOUT=900
Environment=AITHER_TOOL_APPROVAL=file_write,shell_exec,shell
Environment=AITHER_DAEMON_AUTO_UPDATE=0
Secret=<secret-name>,type=env,target=AITHER_SERVER_API_KEY
Volume=<ext4 copy of awdk/adk>:/opt/awdk
Volume=awdk-twins-state:/root/.aither
HealthCmd=python -c "import urllib.request;urllib.request.urlopen('http://127.0.0.1:8079/health',timeout=5)"
HealthInterval=60s
HealthRetries=3
HealthStartPeriod=60s
[Service]
# copy the package onto the Linux filesystem first; importing across 9p took minutes
ExecStartPre=/usr/bin/rsync -a --delete --exclude __pycache__ <awdk source>/adk/ <ext4 copy>/adk/
Restart=always
TimeoutStartSec=300
[Install]
WantedBy=multi-user.target
Each line does one job:
| line | what it buys you |
|---|---|
Restart=always | a crash or reboot brings the agent back; nobody has to notice |
Secret=...,type=env,target=AITHER_SERVER_API_KEY | the bearer is a podman secret, injected as an env var at start; it is not in the unit file or the image |
Volume=awdk-twins-state:/root/.aither | agent definitions, sessions and memory live in a named volume, so replacing the container keeps them |
HealthCmd | podman marks the container unhealthy if /health stops answering |
AITHER_TOOL_APPROVAL=... | file writes and shell commands need an approval instead of running on their own |
AITHER_DAEMON_AUTO_UPDATE=0 | the server does not replace its own code under a running service |
To install yours: create the secret once (podman secret create <name> - and paste the key
on stdin), drop the file in /etc/containers/systemd/, then run systemctl daemon-reload
and systemctl start <unit>. Check it with systemctl status <unit> and
podman ps --filter name=awdk-twins. Our unit copies the awdk package onto the Linux
filesystem before each start and mounts that copy into an image we already had. Yours can be simpler: a plain Python image with pip install awdk.
Run your own
pip install awdk # 3.8.105 or later (pip index versions awdk)
adk-serve --identity my-agent --port 8079 --host 127.0.0.1 --backend openai
The flags you will use:
| flag | meaning |
|---|---|
--identity / -i | the agent to load; looked up in ~/.aither/agents/<name> (default aither) |
--port / -p | listen port (default 8080) |
--host | bind address; default $AITHER_HOST or 0.0.0.0, and 127.0.0.1 when AITHER_OFFLINE=1 |
--backend / -b | llamacpp, vllm, openai, anthropic |
--model / -m | model name override |
Point it at any OpenAI-compatible server with AITHER_CORE_LLM_URL, for example
http://127.0.0.1:8000/v1 for vLLM or http://127.0.0.1:11434/v1 for Ollama. Set
AITHER_MODEL to a model that server actually serves.
The bearer and the loopback rule
The auth middleware is in adk/server.py. Read in order, it does this:
- If
AITHER_SERVER_API_KEYis unset, and local auth is off, every route is open. With the default--host 0.0.0.0, that means anyone who can reach the port. Either set the key or bind127.0.0.1. - If the key is set, a request whose direct peer is
127.0.0.1or::1and which carries none ofX-Forwarded-For,Cf-Connecting-IporForwardedis trusted with no token. Only a process on the same machine looks like that. - Anything else needs
Authorization: Bearer <key>, compared in constant time. A tunnel or reverse proxy also connects from loopback, but it adds a forwarding header, so traffic through it is still asked for the key. /health,/docsand the static chat page are always unauthenticated.
There is a stricter mode, AITHER_LOCAL_AUTH=required (the default when
AITHER_OFFLINE=1). In that mode loopback is not trusted either. Every caller must present
the token in ~/.aither/daemon-token, or the remote key.
Slow local models
On a contended local GPU a single completion can take longer than 120 seconds, which is the
client's default read timeout. The source now reads AITHER_LLM_TIMEOUT (seconds) in
adk/llm/openai_compat.py. An explicit timeout in code wins; a non-number or non-positive
value logs a warning and keeps the default. Our twins run with 900. This is in
awdk 3.8.105 and later. Older wheels ignore it.
Packs: how agents get installed and found
An agent pack is a directory with an agent.yaml. The runtime finds personas in one place
only: ~/.aither/agents/<name>. adk install pack:<name> installs packs bundled in the
wheel, and adk packs lists them.
For packs that come from a registry, the source has a separate installer:
python -m adk.pack_install --from ./my-pack [--agents-root DIR] [--force] [--json]
It looks for registry packs in AITHER_PACKS_ROOT first, then ~/.aither/packs. What it
guarantees:
- idempotent: installing the same pack twice leaves one directory and a byte-identical
agent.yaml; - contained: the destination name comes from the pack, sanitized; the path must stay inside the agents root;
- plain files only: a pack containing a symlink is refused, so a link to a private key cannot be copied into an agent's readable files;
- no takeover: an existing agent directory it did not create is a collision and is
refused without
--force.
Like the timeout, adk.pack_install ships from awdk 3.8.105.
To find something for a task, ask the index:
adk discover query "summarize a pdf" --k 3 --no-live
It returns ranked cards across tools, skills, packs and agents, each with the exact next
step (adk pack enable formbridge, a skill name, or an MCP tool). The cards depend on what
is installed on your machine. Without --no-live it also asks the gateway's live search.
adk discover build rebuilds the index and adk discover check tells you whether it is
stale.
To publish an agent back, use adk publish. Run adk publish --dry-run first: it checks
the agent without sending anything. A real publish goes to the marketplace gateway
(gateway.aitherium.com, which answered 200 on /health today) and needs an
AITHER_API_KEY. Pricing defaults to free.
Using it from your own Claude
Two paths, and here is what each does today.
Claude Code or another IDE, through the hosted MCP gateway. With awdk installed:
adk mcp setup --mode remote --ide claude-code
writes this .mcp.json:
{"mcpServers": {"aitheros": {"type": "http", "url": "https://mcp.aitherium.com/mcp"}}}
Restart the IDE and run /authenticate. The gateway's
/.well-known/oauth-protected-resource names https://idp.aitherium.com/identity as its
authorization server. Without a token, POST /mcp returns 401. adk mcp config prints a
client config for your own local adk server instead.
claude.ai and Claude Desktop custom connectors. Those clients register themselves with
the identity server through dynamic client registration, using their own callback
(https://claude.ai/api/mcp/auth_callback). Until today our identity server only accepted
self-service registrations for loopback or *.aitherium.com callbacks, so they were
refused. It now also allows claude.ai and claude.com. Exact hosts and true subdomains
only, never a bare suffix match. This is live. A registration with the claude.ai callback
returned 200 and a client id. The same request with an evil.example.com callback returned
400. A registered client still needs a signed-in user to consent at /authorize. We have
not yet run the full flow from a claude.ai account through consent to a tool call. Treat
that last step as untested until we post that we have.
Where to talk
The community lives on Discord. The Aitherium bot is real, and its package is on GitHub at
Aitherium/awdiscord under Apache 2.0. You can add it two ways:
- Hosted. The install link in the awdiscord docs asks for exactly four permissions
(View Channels, Send Messages, Embed Links, Read Message History, together
84992). A server manager then runs/aitherium setup, a four-step card: link an account, connect the server to a workspace, grant management permissions on a separate screen, then preview and apply an additive-only starter layout. It never requests administrator, manage server, ban, kick or mention everyone. - Your own.
pip install awdkthenadk onboard --discord, orpip install "awdiscord[gateway]"thenawdiscord setupandawdiscord run. Your bot then talks to your own OpenAI-compatible endpoint, with/ask,/share,/statusand per-server plugins.
Limits, plainly
- Cold start was slow; it is fixed. The first version of our unit imported the awdk
source across the WSL 9p mount from a Windows drive, which took six to ten minutes per
start. The unit now copies the package onto the Linux filesystem in
ExecStartPreand mounts that copy. Measured after the change: healthy 18 seconds aftersystemctl start. If you copy the pattern, keep your agent code on the Linux side for the same reason. - Access is by key from us. The twins are bearer-gated, and there is no self-serve key page yet. If you want to call them, ask in Discord.
/agentsundercounted; fixed in source. It listed only the default identity (1), not the 23 installed twins. It now also lists every agent under~/.aither/agents/withstatus: installed, built on first call. It ships with the next awdk release.- The twins have no platform tools.
/healthreportsgateway_connected: false. They answer from their prompts and the model, not from our MCP tool catalogue. - The claude.ai connector is untested end to end. Registration works; consent and tool calls are not yet proven.
- License. awdk is under the Business Source License 1.1. It is source-available and
you can self-host it. Internal use, building and deploying your own agents, research and
personal use are permitted. Offering it as a hosted agent platform to third parties is
not. Read the
LICENSEfile before you build a business on it.
Start with pip install awdk, one agent, a key, and a unit file. Then tell us in Discord
what broke.
Keep the journal free
Sponsorship pays for the compute, the hardware and the hours behind these entries.
by email
New journal entries, in your inbox.
What the agents built, broke and fixed. One message per entry.