Package Exports
- aegiscode-cli
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (aegiscode-cli) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
aegiscode
aegiscode remembers your project between sessions — so you never have to re-explain your stack, decisions, or context.
Multi-model terminal coding assistant. Works with Claude, OpenAI, DeepSeek, Groq, Gemini and Ollama. BYOK — your keys, your cost.
- Private AI, no keys needed — run fully local with Ollama. Nothing leaves your machine, no API key, no account.
- A model that grows over time —
/routerauto-picks the cheapest model that can handle each task and learns from every session, so cost drops while quality holds. - Many models, one answer —
/councilvotes and/debatemakes them argue it out, so you get a reasoned consensus instead of one model's guess. - Cloud sync — $2/month — keep cross-session semantic memory and sync every session across machines. Activate with a single code.
Semantic memory — €2/month
The AI remembers your project, stack, and decisions across every session.
Subscribe at aegiscloud.org, then activate with one command:/memory activate <token>
Install
Requires Node.js >= 22. Install via nvm:
nvm install 22
Important: Use Kitty (recommended) or a modern terminal emulator (Ghostty, WezTerm, Alacritty, iTerm2, Windows Terminal) for the best experience. Older terminals may have rendering issues.
npm install -g aegiscodeOr from source:
git clone https://github.com/aegisinfo/aegiscode
cd aegiscode
bash install.shinstall.sh builds the project and creates an aegis wrapper in ~/.local/bin — no sudo needed.
Either way, the command is aegis.
Desktop GUI
aegiscode also ships as a native Electron desktop app — same AI engine, same memory, with a split-pane terminal + shell.
Download (Linux / macOS / Windows):
→ aegiscloud.org/aegiscode#download
# Linux
wget https://dl.aegiscloud.org/aegiscode-gui.deb
sudo dpkg -i aegiscode-gui.debLaunch:
aegisTabs:
| Tab | Description |
|---|---|
| Terminal ⌨ | Full aegiscode session with true color and resize support |
| History ◷ | Browse and resume past sessions |
| Memory ⬡ | Search stored memory entries, view stats, manage subscription |
| Cloud ⬡ | Cloud sync status and API key |
| Settings ⚙ | Configure API key and model |
Memory and cloud sync are activated by pasting your API key in the Memory tab after subscribing at aegiscloud.org.
First run
Run aegis — if no API keys are configured, an interactive setup guide launches automatically:
◆ aegiscode — Setup
Keys are saved to ~/.aegiscode/.env
Select provider:
❯ Anthropic (Claude) ANTHROPIC_API_KEY
OpenAI (GPT) OPENAI_API_KEY
DeepSeek DEEPSEEK_API_KEY
Groq GROQ_API_KEY
Google Gemini GEMINI_API_KEY
Ollama (local) (no key needed)Pick a provider, paste your key, and optionally add more. Keys are saved to ~/.aegiscode/.env and the app starts immediately.
Or configure manually — create ~/.aegiscode/.env:
ANTHROPIC_API_KEY=YOUR_ANTHROPIC_API_KEY
OPENAI_API_KEY=YOUR_OPENAI_API_KEY
DEEPSEEK_API_KEY=YOUR_DEEPSEEK_API_KEY
GROQ_API_KEY=YOUR_GROQ_API_KEY
GEMINI_API_KEY=YOUR_GEMINI_API_KEYOnly add the keys for providers you want to use. aegiscode picks them up automatically.
Claude Code Pro/Max subscription login
Already paying for Claude Code? Use your subscription instead of a pay-per-token Anthropic API key:
claude setup-token # generates a Claude Code OAuth token (sk-ant-oat...)
aegis login --claude-pro # paste it inThe token is saved to ~/.aegiscode/.env as CLAUDE_CODE_OAUTH_TOKEN and takes priority over ANTHROPIC_API_KEY for any Anthropic model. Anthropic only allows OAuth subscription tokens to make API calls through the official claude binary, so aegiscode shells out to it instead of calling the API directly — the claude CLI must be installed and on PATH. Tool calls (file edits, shell commands) run through claude's own permission system, following whichever permission mode you've set in aegiscode.
Quick start
aegis # interactive mode
aegis "refactor this file" # start with a message
aegis --model deepseek-chat # use a specific model
aegis --router # start with the auto-router on
aegis --continue # resume last session
aegis --resume <session-id> # resume specific session
aegis --print "what does this repo do?" # headless — print response, exit
aegis --print --output-format json "summarize this" # headless JSON output, for scriptsConfiguration
Config lives at ~/.aegiscode/config.json. It is created automatically on first run.
API keys are read from ~/.aegiscode/.env — you don't need to put them in config.json.
To add a custom model inside the app:
/model add openrouter-mixtral "Mixtral 8x7B" mistralai/mixtral-8x7b-instruct https://openrouter.ai/api/v1 sk-or-...Built-in models
| ID | Model | Provider |
|---|---|---|
claude-fable-5 |
claude-fable-5 | Anthropic |
claude-sonnet-4 |
claude-sonnet-4-6 | Anthropic |
claude-opus-4 |
claude-opus-4-8 | Anthropic |
claude-haiku-4 |
claude-haiku-4-5-20251001 | Anthropic |
openai-gpt-5.5 |
gpt-5.5 | OpenAI |
openai-gpt-4o |
gpt-4o | OpenAI |
openai-o3 |
o3 | OpenAI |
deepseek-chat |
deepseek-chat | DeepSeek |
deepseek-reasoner |
deepseek-reasoner | DeepSeek |
groq-llama |
llama-3.3-70b-versatile | Groq |
groq-deepseek |
qwen-qwq-32b | Groq |
gemini-2.5-pro |
gemini-2.5-pro | |
gemini-2.5-flash |
gemini-2.5-flash | |
ollama-local |
llama3.2 | Ollama (local) |
Any OpenAI-compatible API can be added as a custom model.
Commands
Full reference with copy-paste examples: aegiscloud.org/aegiscode/commands
| Command | Alias | Description |
|---|---|---|
/help [command] |
/? /h |
Show all commands, or detailed help for one |
/model [id] |
/m |
Interactive model switcher, or switch by ID |
/model list |
List all configured models | |
/model add <id> <name> <model> <baseURL> <apiKey> |
Add a custom model | |
/model remove <id> |
Remove a model | |
/router [on|off|stats] |
Show/toggle auto-router status and tier mapping | |
/router set <tier> <id> |
Pin a model to the simple/medium/complex tier | |
/effort [off|low|medium|high|max] |
Set Claude's extended-thinking effort level | |
/confirm [on|off] [model-id] |
/confirmations |
Toggle tool-call confirmation prompt |
/yolo [on|off] |
Toggle auto-approve for all tool calls | |
/clear |
/cls |
Clear chat history |
/compact |
Compress context to save tokens | |
/status |
/st |
Show session info and token usage |
/tokens |
/tok |
Token usage graph and estimated spend |
/theme [name] |
/t |
Show or switch UI theme |
/thinking |
Toggle thinking blocks | |
/copy [n|last|list] |
/cp |
Copy a code block to clipboard |
/multi <task> |
Run task across multiple agents in parallel | |
/multiyolo <task> |
Same as /multi with auto-approved tool calls |
|
/build <description> |
/forge |
Build an app with multiple AI models in parallel |
/clone <url> [--name <project>] |
/fetch-site /websnap |
Clone a website using DeepSeek |
/council <question> |
Multi-model majority vote | |
/debate <topic> [--rounds N] |
/db |
Structured multi-model debate across rounds |
/research <question> |
Multi-agent research | |
/memory [activate|stats|clear] |
Manage semantic memory | |
/cloud [activate|status] |
Manage AEGIS Cloud sync | |
/billing |
Show subscription and billing info | |
/skills [refresh] |
/sk |
List and manage loaded skills |
/hooks [status|list] |
View and manage hooks | |
/mcp [tools|<server>] |
Show MCP server status and tools | |
/version |
/v |
Show version info |
/router — automatic model routing
aegiscode can pick which configured model handles each message for you, based on how hard the task actually looks — so a quick lookup doesn't pay for an expensive model, and a real architecture question doesn't get shortchanged by a cheap one.
/router on # start auto-picking a model per message
/router set simple deepseek-chat # pin a tier to a specific model id
/router # show current status + tier mappingClassification is a handful of cheap heuristics (message length, question phrasing, keywords like "architecture" or "security") — no extra model call to decide. When no tier is pinned explicitly, it defaults to a fixed cost-ordered list of the built-in models filtered to ones you have an API key for — and learns from there: if you abort (Esc/Ctrl+C) a response, that costs the model handling it some confidence for that tier, so a model that keeps getting cut off loses ground to the next cheapest one over time. /router stats shows the learned success rate per tier and model. This is a noisy signal (people abort for reasons that have nothing to do with quality too), so don't expect it to be perfectly tuned after a handful of sessions — it's real adaptation from real usage, not a black box.
Running /model <id> always wins — it pins your choice for the rest of the session and the router backs off until you run /router on again. The status bar shows model: <name> (auto) whenever the router picked it for you.
/build — parallel multi-model app builder
/build decomposes your task into components, assigns each to the best available AI model, and builds everything simultaneously.
/build a REST API for a todo app with PostgreSQL
/build a CLI tool that summarizes git commits
/build a Flask web app with login and dashboardHow it works:
- Plan — primary model produces a component tree (JSON)
- Build — all components built in parallel, each by the best model for that role:
- DeepSeek → backend, algorithms (
DEEPSEEK_API_KEY) - GPT-4o → frontend, UI (
OPENAI_API_KEY) - Llama via Groq → tests, docs (
GROQ_API_KEY) - Primary model → architecture, integration
- DeepSeek → backend, algorithms (
- Sync — summary of files written and how to run the app
All agents write real files to your current directory. The more API keys you have configured, the more models work in parallel.
/council & /debate — many models, one answer
Don't trust a single model on a hard call. Put several to work on it.
/council "is a state machine overkill for this form?" # they vote, consensus wins
/debate "monorepo vs polyrepo for this team" --rounds 3 # they argue it out across rounds
/debate "React vs SolidJS" --models gpt-4o,deepseek # pick the panel/council sends the question to multiple configured models simultaneously, then surfaces the majority answer with the dissents. /debate runs a structured, multi-round discussion — each model sees the others' arguments and refines or pushes back — so you get reasoning, not just a tally. Both auto-pick from the models you have keys for; add more keys, get a bigger panel.
Tools
aegiscode can read, write, and execute files in your project. Tool permissions are configured per-project in .aegiscode/settings.json:
{
"permissions": {
"allow": ["Bash(git *)", "Bash(ls *)"],
"ask": ["Bash(curl *)", "Bash(rm -r *)"],
"deny": ["Bash(sudo *)", "Read(.env)"]
}
}Permission modes:
| Mode | Behavior |
|---|---|
default |
Read auto, write requires confirmation |
autoEdit |
Read + write auto, execute requires confirmation |
yolo |
Everything auto-approved |
plan |
Read only, everything else blocked |
Memory
Persistent cross-session memory requires an active subscription (€2/month).
How to activate:
- Subscribe at aegiscloud.org
- Check your inbox for the activation token
- Run inside aegiscode:
/memory activate <token>Once active, the AI remembers your stack, past decisions, and project context across every session — no re-explaining needed.
/memory stats # usage and quota
/memory clear # wipe stored memorySessions
Sessions are stored locally as JSONL files. Resume a previous session:
aegis --continue # resume most recent
aegis --resume <session-id> # resume by IDIf cloud sync is active (/cloud activate, requires an aegiscloud.org API key), every session is also uploaded and browsable from aegiscloud.org/dashboard — search, folders, notes, and bulk export, from any browser. The desktop GUI's Cloud tab links straight there.
Skills
Skills are Markdown files (SKILL.md) that teach aegiscode a specialized capability or house rule — discovered automatically, loaded only when relevant so they don't cost tokens up front.
.aegis/skills/<name>/SKILL.md # project-level, git-tracked
~/.aegis/skills/<name>/SKILL.md # user-level, global.claude/skills/ is also scanned for compatibility with Claude Code skills. Project-level skills win over user-level ones with the same name, so a project can override a global skill with local knowledge.
/skills # list discovered skills
/load <name> # load a skill's full content on demand
/skill <name> <desc> # scaffold a new skillA SKILL.md is just frontmatter + instructions:
---
name: my-skill
description: What it does and when to use it — this is what the AI sees by default.
allowed-tools: [Read, Grep, Bash]
user-invocable: true
---
Full instructions, loaded only when the skill is actually triggered.MCP
aegiscode supports MCP (Model Context Protocol) servers. Configure in ~/.aegiscode/config.json:
{
"mcpEnabled": true,
"mcpServers": {
"my-server": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@my/mcp-server"]
}
}
}Built by
Niklas Borneklint — aegiscloud.org · @aegisinfo
Part of the ÆGIS ecosystem.