Local AI agent CLI bridge — discover, register, and invoke local AI coding agents (Claude Code, Codex, etc.) from the terminal.
pip install agt-team==0.1.4 Copy PIP instructions
A local bridge and orchestrator for AI coding-agent CLIs.
agt discovers the coding agents installed on your machine and gives them one command-line, server, and daemon interface. It adds persistent sessions, multi-machine execution, goal-driven sub-agent orchestration, static DAG workflows, and a shared artifact registry.
Supported agents include Claude Code, Codex, Cursor Agent, GitHub Copilot, Qwen, Kimi, OpenCode, OpenClaw, and custom CLIs.
git clone https://github.com/half-island-box/agent-team.git cd agent-team uv sync uv run agt --help Or install with pip:
python -m pip install -e . agt --help Quick start Run or chat with an agent agt probe agt run --provider claude --prompt "Explain this repository" agt chat --provider claude # Attach files to the first chat turn (repeatable, max 10) agt chat --file report.pdf --file notes.md # Show thinking, tool calls, and per-turn token/cost usage agt chat --show-thinking --show-tools --usage # Resume a persisted session agt chat --list agt chat --resume Orchestrate a goal agt goal run "Review this repository and fix all P0 issues" agt goal status agt goal runs Goal mode creates a dynamic Job tree. Agents can delegate recursively, pause for user input, retry failed work during synthesis, and export a successful run as a reusable SOP:
agt goal input "Use Chinese and split the work by module" agt goal export -o pipeline.yaml Run a reusable workflow # pipeline.yaml name: review-and-fix identities: reviewer: {did: did:agt:reviewer, provider: claude} tester: {provider: codex} tasks: - name: review identity: reviewer input: Review the diff and write findings to .agt/outputs/ output: review-report - name: test identity: tester input: Run tests using ${review.review-report} as context depends_on: [review] output: test-result agt sop validate pipeline.yaml agt sop run pipeline.yaml Start server and daemon mode Use server mode for queued execution, remote workers, shared history, and multi-machine orchestration.
agt server start --detach # first run generates ~/.agt/server.secret agt daemon start --detach agt task submit --prompt "Say hello in three words" The server listens on 127.0.0.1:8420 by default. OpenAPI documentation is at http://127.0.0.1:8420/docs. The server also provides loopback-only console project APIs for creating, renaming, opening, and listing directory-backed projects; local directory browsing is constrained by AGT_CONSOLE_WORKSPACE_ROOTS. A project may additionally pin a directory on one remote daemon (remote_daemon_id + remote_path): listing it goes over the reverse-dial link (GET /api/console/directories?daemon_id=…) and is bounded by that daemon's AGT_AGENT_CWD_ALLOWLIST, so every selectable directory is also runnable. See the quick-start guide for deployment topologies and configuration.
A daemon behind NAT listens on a fixed port and the server dials out to it. Pairing is one command on each side — the invite code carries the shared secret, the daemon's public URL and its id, so nothing is copied by hand:
# server machine agt daemon invite --name cloud-01 --url ws://1.2.3.4:8422 --add # → run the printed `agt daemon init agt1.…` on the daemon machine # daemon machine agt daemon init agt1.… agt daemon start --detach # server machine — retire a remote daemon and drop its target entry agt daemon remove cloud-01 agt daemon remove deletes the target's line from ~/.agt/daemons (comments and other entries untouched); the server stops dialing it after a restart. The settings panel's Connection & pairing block can also register and remove targets through the loopback-only /api/pairing/* endpoints, which additionally stop the live DaemonLink immediately.
An invite code embeds the server secret; treat it like an SSH private key. See reverse-dial pairing.
See the CLI reference for all options, environment variables, and exit codes.
┌───────────┐ HTTP / WS ┌───────────┐ claim / report ┌────────────┐ │ CLI │ ◄────────────► │ Server │ ◄──────────────► │ Daemon │ └───────────┘ └───────────┘ └────────────┘ │ │ │ SQLite + artifacts │ subprocess │ Job tree + MCP + SOP ▼ ▼ ┌────────────┐ ┌───────────┐ │ Agent CLI │ │ Artifacts │ └────────────┘ └───────────┘ CLI submits work and provides human-readable views of runs. Server owns coordination, persistence, routing, MCP, and artifacts. Console projects are persistent directory pointers; run history remains scoped by the project path in jobs.cwd. A project's local path is mandatory; its optional (remote_daemon_id, remote_path) pair supplies the default working directory for chat/SOP/Goal runs routed to that daemon. Daemon owns local process execution, concurrency, and heartbeats. Agent CLIs run as fresh subprocesses; sessions remain provider-native. SQLite is the source of truth for all Server-managed runs. sessions.json indexes are used only by local direct agt chat. Development uv sync uv run pytest uv run agt --help Contributing Issues and pull requests are welcome. For substantial changes, open an issue first. Keep provider-specific behavior behind runtime adapters, preserve the small Python-first architecture, and run the relevant tests before submitting.
The repository does not currently declare an open-source license. Add a LICENSE file before distributing the project publicly or accepting external contributions under a specific license.
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
None of the files in this release were uploaded with provenance metadata.
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.




