aaclaw
v0.3.5
Published
AA Claw ๐ฆ โ Lightweight AI Agent gateway in Rust. Single static binary, any OpenAI-compatible provider, built-in memory, remote control & multi-agent orchestration. Auth via aaclaw.net.
Maintainers
Readme
AA Claw ๐ฆ
Lightweight AI Agent gateway in Rust โ chat, memory, remote control, and task orchestration in a single static binary. Auth via aaclaw.net.
What is AA Claw?
One command that gives you:
- ๐ชถ A lightweight agent โ single ~17MB Rust binary, statically linked with musl; zero glibc dependency, no runtime to install
- ๐ Any OpenAI-compatible API โ DeepSeek / OpenRouter / OpenAI / local ollama; switch by changing one config line
- ๐ง Persistent memory โ store facts, search them semantically, auto-consolidate overnight
- ๐ฎ Remote control โ turn any server into a web-controlled agent
- ๐งฉ Task orchestration โ describe a goal, get it decomposed and executed as subtasks
- ๐ฌ Sessions โ every conversation is saved and resumable
This guide walks you through everything, step by step. No prior setup assumed.
Requirements
- Linux x64 (musl static build โ works on any distro, from Alpine to Ubuntu)
- Node >= 16 (only for the npm installer; the binary itself has zero dependencies)
- An API key from any OpenAI-compatible provider (DeepSeek, OpenRouter, OpenAI, ollama...)
Install
npm install -g aaclawVerify it works:
aaclaw --versionnpm update -g aaclaw # upgrade later
npm uninstall -g aaclaw # removeIf the platform package was skipped:
npm install -g aaclaw --include=optional
Step 1 โ Log in
AA Claw authenticates through aaclaw.net. Two ways:
Option A: browser OAuth (easiest on a desktop)
aaclaw loginChoose option 1, confirm on the authorization page, copy the token โ done.
Option B: paste a token (headless servers, SSH, containers)
- Register at aaclaw.net
- Open the /tokens page and generate an API token (looks like
tk_xxxxxxxx) - Paste it into the terminal:
aaclaw login tk_xxxxxxxxCheck you're authenticated:
aaclaw whoamiTokens are valid for 30 days and cached in ~/.aaclaw/auth.json. Re-run aaclaw login to refresh, aaclaw logout to clear.
Step 2 โ Connect your AI provider
Create a config file in your working directory:
aaclaw initThen edit aaclaw.toml with your provider of choice:
[[providers]]
name = "deepseek"
type = "openai"
api_key = "sk-..."
default_model = "deepseek-chat"
base_url = "https://api.deepseek.com/v1"Any OpenAI-compatible endpoint works. Common choices:
| Provider | base_url | default_model example |
|------|------|------|
| DeepSeek | https://api.deepseek.com/v1 | deepseek-chat |
| OpenRouter | https://openrouter.ai/api/v1 | any model slug |
| OpenAI | https://api.openai.com/v1 | gpt-4o-mini |
| ollama (local) | http://localhost:11434/v1 | llama3 |
Inspect what AA Claw loaded:
aaclaw configStep 3 โ Start talking
One-shot question:
aaclaw ask "explain musl vs glibc in two sentences"Interactive chat:
aaclawInside chat you can use tools (shell, file, http, git, web_search) โ the agent executes and reports back. Exit with Ctrl+C.
Congratulations โ that's the basic loop. The rest of this guide covers what makes AA Claw more than a chat wrapper.
Feature walkthrough
๐พ Memory โ teach it facts, recall them later
aaclaw remember "our staging server is 10.0.0.42, prod is 10.0.0.51"
aaclaw memory "staging server address"memory does semantic search โ you don't need exact keywords.
Over time, run:
aaclaw dreamAuto-Dream consolidates accumulated memories: merges duplicates, prunes noise, keeps the important stuff compact.
๐ฌ Sessions โ nothing is lost
Every conversation is persisted. List them:
aaclaw sessionsResume the latest, or a specific one:
aaclaw resume # latest session
aaclaw resume <id> # specific session๐ Remote control โ drive a server from the web
Turn the CLI into an agent controlled from aaclaw.net:
aaclaw remote # shows up as your hostname
aaclaw remote --name build-box # custom nameEvents stream back live; you send commands from the browser. Ideal for headless boxes, CI runners, or keeping an agent on a VPS.
To expose channels (web UI and more) as a daemon:
aaclaw serve # default listen address from config
aaclaw serve --web 0.0.0.0:8080 # override๐งฉ Orchestrate โ one goal, many subtasks
Give it a complex goal; it decomposes, executes, and reports:
aaclaw orchestrate "write a crawler for example.com, test it, and save results to csv"Use this when a task naturally has stages (build โ test โ package, scrape โ clean โ store). For single questions, ask is faster.
๐ ๏ธ Self-optimization loop
Point the Meta-Harness at a codebase:
aaclaw optimizeIt generates tests, tracks coverage across runs, and flags regressions. Best run repeatedly in a project directory under version control.
๐ฏ Skills
aaclaw skills # scan data/skills/
aaclaw skills --dir my/skills # custom directoryDrops skill files in a directory and the pipeline picks them up. See aaclaw skills --help for matching options.
Command reference
| Command | What it does |
|------|------|
| chat | Interactive chat (default when no command given) |
| ask <prompt> | Single one-shot prompt |
| serve | Start web server + all enabled channels (daemon mode) |
| remote | Run as a remote-controlled agent; commands come from aaclaw.net |
| login [token] / logout / whoami | Auth: login (browser OAuth or tk_... token) / logout / status |
| sessions / resume [id] | List sessions / resume (latest if no ID given) |
| remember <text> / memory <query> | Store a memory / semantic search |
| dream | Auto-Dream memory consolidation |
| orchestrate <prompt> | Decompose and execute a complex task |
| optimize | Meta-Harness loop: tests / coverage / regression detection |
| skills | Test the skills pipeline |
| feedback <text> | Send bugs or ideas straight to the team (first line = subject) |
| init / config | Initialize config file / show current config |
| status | Version and system info |
Global option: -c, --config <FILE> to use a different config (default aaclaw.toml).
Configuration
aaclaw.toml is loaded from the current directory (see aaclaw init / aaclaw config). Multiple [[providers]] blocks are allowed; the agent picks by priority.
Platform Support
| Platform | Status | |------|------| | linux-x64 (musl static) | โ v0.3.0+ | | linux-arm64 / darwin / win32 | ๐ง future releases |
Feedback & Links
- Found a bug or have an idea?
aaclaw feedback "your message here"โ it lands directly in our inbox - ๐ Website / auth service: aaclaw.net
- ๐ฆ npm package: npmjs.com/package/aaclaw
License
Copyright ยฉ 2026 Theone-best โ Proprietary software. All rights reserved. Licensed for installation and use in binary form only; redistribution, reverse engineering, or removal of copyright notices is prohibited. See LICENSE for the full terms. Installing or using the software means you accept the agreement.
