Linux-only manager for harness instances and accounts: Claude Code, Codex,
OpenCode and Antigravity (agy). One Rust binary holds the CLI, the iced GUI
and the usage daemon; the COSMIC panel applet is a separate binary.
What it does:
- Keeps a registry (
~/.config/agentdeck/instances.toml) of harness instances, the model pool and quota sources; the CLI, GUI and daemon share it under a file lock. - Reads subscription quotas from T3 Code's cache and polls API-key balances
(OpenRouter, Vercel AI Gateway, DeepSeek). Publishes one
state.jsonfor the panel, GUI and router. Login uses the official CLIs inside agentdeck's PTY. - Syncs shared state across instances: secondary accounts, Codex shadow homes, skills, instruction files, MCP lists, terminal wrappers.
- Ships built-in plugins with no standalone copies: usage monitoring, the model router, the agent-process supervisor and gateway image generation.
cargo install --locked --path crates/agentdeckInstall the desktop launcher and icon. The launcher expects agentdeck on PATH.
data_home=${XDG_DATA_HOME:-"$HOME/.local/share"}
install -Dm644 crates/agentdeck/assets/agentdeck.svg "$data_home/icons/hicolor/scalable/apps/agentdeck.svg"
touch "$data_home/icons/hicolor"
install -Dm644 crates/agentdeck/agentdeck.desktop "$data_home/applications/agentdeck.desktop"For a GitHub release, use the downloaded agentdeck.svg and agentdeck.desktop as the source files.
COSMIC applet (separate binary, libcosmic required):
cargo install --locked --path crates/agentdeck-appletThen add agentdeck in the COSMIC panel settings. The applet is strictly for
AI usage quotas and balances (never Coordinator, Approver, or other modules); it
reads only the state.json the daemon publishes, with no network calls and no
credentials.
After installing a new build, running processes keep the old binary:
- Daemon (usage polling, window mapping):
systemctl --user restart agentdeck-daemon. - Applet: restart the panel, not the applet. COSMIC does not respawn a
stopped panel applet, so killing
agentdeck-appletalone leaves it gone until the panel restarts. Kill thecosmic-panelprocess by its PID; the COSMIC session restarts the panel with all its applets. - Router hook: nothing to restart, each launch runs the installed binary.
Subscription quotas (claude, codex, antigravity) require
T3 Code with the corresponding provider instance enabled. In T3 Settings →
Providers → Health check interval, choose a nonzero interval
(providerHealthRefreshInterval in milliseconds). With 0, quotas change
only on manual refresh and go stale. agentdeck usage doctor reports this.
OpenCode Go is polled directly from the OpenCode login, with T3's opencode
cache as the fallback, because T3 refreshes its limits only manually.
Agentdeck does not install quota capture hooks. Claude and Antigravity quota
status lines have been removed permanently.
[[usage]] entries for Claude, Codex and Antigravity require instance, the
registered T3 provider instance ID. OpenCode Go defaults to opencode.
Legacy source fields in existing configs still load; new sources use the
instance binding instead of provider login paths or commands.
agentdeck instance registry instances in instances.toml (list/add/rename/remove)
agentdeck pool model catalog and explicit routing selections
agentdeck usage [[usage]] quota sources (add/remove/once/doctor)
agentdeck daemon usage daemon (single writer)
agentdeck login <id> official login CLI for an instance inside a PTY
agentdeck claude sync and drift-check secondary Claude accounts
agentdeck codex sync, check and fix Codex shadow homes
agentdeck opencode show OpenCode accounts, switch the active one
agentdeck harness detect binaries, run official updaters/installers
agentdeck t3 T3 providerInstances status, sync and import
agentdeck sync background sync drift status and manual runs
agentdeck skills | instructions | mcp shared skills, AGENTS.md links, MCP lists
agentdeck wrapper terminal wrappers and legacy launcher cleanup
agentdeck service install/remove/inspect the systemd user unit (never starts it)
agentdeck plugin enable/disable built-in plugins (agent-process, ai-usage, router, imagegen)
agentdeck imagegen generate or edit one image through Vercel AI Gateway or OpenRouter
agentdeck mcp-server stdio MCP server for skills, shared instructions and drift (plugin mcp-server)
agentdeck route route a task through the router (`agentdeck route`, hook, workflow, shell bridge)
agentdeck router refresh the generated router.json
agentdeck ps live agent-process tree (read-only)
agentdeck migrate copy-only migration from the old ai-usage tree
Every write command has --dry-run; tests and experiments run on temp dirs.
The daemon is a systemd user unit, managed but never auto-started by agentdeck itself:
agentdeck service install # renders the unit, daemon-reload only
agentdeck service status
systemctl --user enable --now agentdeck-daemon.service # owner's callThe same binary serves the iced GUI (English and Russian): instances with
quotas, the add wizard with login and the drift view (with the sync auto-apply
switch). Each module is a sidebar group with its on/off switch and its pages:
Quotas (sources with API keys, panel widget visibility, polling interval),
Router (pool, parallel limits, decision provider, model and key) and Agents
(processes, including podman containers started by agents). System → Modules shows each module's technical status. The usage
daemon re-reads quota sources, polling settings and new keys from usage.env
every cycle, so GUI edits apply without a restart. The GUI shares the registry with the CLI under flock and
works while the daemon is stopped. The Pool page lists every cached model per
registered instance, with search, an instance filter and sorting; models T3
marks legacy are hidden unless enabled or shown with the Legacy checkbox. New catalog
entries start disabled; only explicitly enabled entries are routing candidates.
T3 favorites are not used. Instance names can be edited without changing their
IDs or T3 thread history. The router reads the current registry directly.
Saved pool entries the catalog does not provide (custom models or options) can
be deleted; catalog models are switched off instead.
Module settings live in instances.toml; absent keys use the defaults:
[router]
decision_provider = "openrouter" # or "vercel" (Vercel AI Gateway)
decision_model = "~typesafe/jev-latest" # default for OpenRouter; required for vercel
[imagegen]
provider = "vercel" # or "openrouter"
model = "bytedance/seedream-5.0-pro" # default; OpenRouter default: google/gemini-3.1-flash-image
transparent_model = "openai/gpt-image-1-mini" # --transparent, always on Vercel
[usage_poll]
refresh_seconds = 120 # minimum 15
stale_seconds = 900 # cached quota data older than this is staleDecision keys: OpenRouter reads JEV_OPENROUTER_API_KEY or
~/.config/model-route/openrouter.key; Vercel AI Gateway reads
AI_GATEWAY_API_KEY or ~/.config/model-route/vercel.key. Quota sources of
kind vercel show the gateway's credit balance. Image keys: AI_GATEWAY_API_KEY /
OPENROUTER_API_KEY, then the api_key_env of the matching [[usage]] source,
then the same model-route key files.
Parallel tasks on each instance sets its router limit; a blank value means
unlimited. The limit covers active T3 threads and subagents across every
coordinator and model on that instance, including queued and waiting runs.
Limits are stored as max_parallel in [[instance]]. Routing excludes full
instances, and the launch hook reserves a slot before dispatch. Failed dispatch
reservations expire after two minutes. If T3 load cannot be read, launches on
limited instances are blocked. Workflows only enforce dependencies; legacy
concurrency values are accepted and ignored.
Each instance has a CLI button that opens its CLI in a terminal with the
correct account. From a terminal, use agentdeck instance run <id> -- <args>.
Instance wrappers no longer add application menu entries. To remove legacy
Agentdeck provider shortcuts, use agentdeck wrapper remove-launchers (supports
--dry-run); the wrapper commands themselves are kept.
Built-in, enabled per machine with agentdeck plugin enable <name>:
ai-usage— daemon unit for T3 subscription quotas and API-key balances.router— model pool JSON and the delegation router.agent-process— supervised background processes with the same CLI and registry as the standalone script it replaces.imagegen—agentdeck imagegenplus theimagegen-gatewayskill, synced to every harness. The skill tells agents to use it only when no built-in image tool or other image skill works, because every call is billed. Image-only gateway models go through the Images API (/images/generations,/images/edits); Gemini/GPT image models go through chat completions. Gateway, models and key are set in the GUI under Image generation → Settings; Check verifies both models on the gateway's public model list for free.coordinator— thecoordinatorskill (moved here fromrouter) and the coordinator tools ofagentdeck mcp-server:checklist_update(per-T3-thread progress items with status, note and links) andbacklog_list/backlog_add/backlog_update(a per-project backlog in~/.local/state/agentdeck/coordinator/backlog/<project>.json; closing needs the PR and merged SHA, ordonewith the evidence for work that has no PR). The GUI's Coordinator page shows every thread's goal, checklist and the open backlog. After upgrading from 0.1.16 withrouteron, runagentdeck plugin enable coordinatorto keep the skill. Everychecklist_updatethat changes an item's status writes a report (goal, N/M, what changed) tocoordinator/reports.jsonlin the state dir, shown on the Coordinator page, and raises an agentdeck desktop notification.mcp-server— registersagentdeck mcp-server(stdio MCP) in every harness (Claude profiles, Codex, Antigravity, OpenCode) and adds an instruction block telling models to use it. Tools:skills_list(origins, invocation and conflicts such as a shared skill shadowing a Codex system skill),skill_install/skill_remove(local dir or GitHub, global or one project),skill_invocation,instructions_read/instructions_edit(agentdeck blocks stay protected),drift_list/drift_apply/drift_resolve. One call updates every harness instead of only the caller's own.state_read/state_writekeep a long session's goal, progress and verbatim owner decisions per T3 thread (T3CODE_THREAD_ID) in~/.local/state/agentdeck/threads/; they survive provider switches, handoffs and compaction, a fork reads its parent's state, and a new session gets the goal line in the server'sinitializeinstructions. Disable removes the registrations and restores each harness file byte for byte.
Enable lays out exactly the plugin's files, hooks and instruction block; disable removes them. Plugin data is kept.
Step-by-step runbook: docs/MIGRATION.md.
After installing a build with T3 quotas, run agentdeck plugin enable ai-usage
to remove the old quota hook registrations.
agentdeck migrate ai-usage --dry-run
agentdeck migrate ai-usage # copy-only: ids, secrets, historyGPL-3.0-or-later.