@agenaai/cli
v1.3.1
Published
Official command-line tool for AGENA — enroll your machine as a Runtime, run the CLI bridge, and manage tasks, skills, and sprint refinement from the terminal.
Maintainers
Readme
@agenaai/cli
Official command-line tool for AGENA — enroll your machine as a Runtime, manage the CLI bridge daemon, and drive the whole platform (tasks, skills, sprint refinement) from the terminal.
Install
# Homebrew (macOS / Linux) — recommended
brew install aozyildirim/tap/agena
# npm (any platform)
npm install -g @agenaai/cli
# one-shot
npx @agenaai/cli --helpFirst-run setup
agena setupWalks you through:
- Pick a backend + tenant (defaults to
https://api.agena.dev). - Browser-based OAuth via RFC 8628 device-code flow — no token
copy-paste. (Falls back to manual JWT paste for CI / headless
shells; the key in DevTools is
localStorage.agena_token.) - Starts the bridge daemon, which auto-enrolls this machine as a Runtime.
Config lives in ~/.agena/config.json; the JWT is stored in the OS
keychain (macOS Keychain / libsecret / Windows Credential Manager)
when available, falling back to the config file.
Commands
Auth & tenant
agena login Device-code OAuth (or --jwt to paste manually)
agena setup Login + daemon start in one shot
agena whoami Current user, tenant, JWT source
agena org list Organizations you belong to
agena org switch <slug> Switch the active tenant for this CLIDaemon (local CLI bridge)
The bridge is the process Agena's backend calls into to drive Claude Code / Codex on your machine. Starting the daemon also enrolls this host in the Runtimes registry.
agena daemon start Spawn the bridge, auto-enroll
agena daemon stop Kill the running daemon
agena daemon status Is it running?
agena daemon logs -n 100 Tail the daemon logRuntimes
agena runtime list Every runtime on the tenant + status
agena runtime status <id> Detail view for one runtimeTasks
agena task list Recent tasks (filter: -s running, etc.)
agena task show <id> Full task detail
agena task logs <id> Tail the task's log trail
agena task create -t "Fix bug" --assign
Create a task and immediately enqueue
it for the AI agentSkill catalog
Skills are reusable patterns the platform auto-extracts from completed tasks — they get prepended to agent system prompts when a new task matches.
agena skill list Browse the catalog
agena skill list -q auth Search by name/tag/description
agena skill show <id> Full skill incl. prompt fragment
agena skill search "fix 502" Vector-search the catalog
agena skill delete <id> -y Remove a skillSprint refinement (history-grounded story points)
Qdrant-backed retrieval over the team's completed work items — grounds LLM estimates in the project's real history.
agena refinement backfill -p MyProject -t MyTeam --days 730
Kick off the Azure/Jira → Qdrant import
agena refinement backfill-status
Poll the indexer
agena refinement history List what's currently indexed
agena refinement history --sp 5 -q "auth"
Filter by SP / keyword
agena refinement analyze -p MyProject -t MyTeam --sprint-path '...'
Estimate SP for an upcoming sprintAll commands read ~/.agena/config.json. agena login is
idempotent — re-run it to rotate JWT or switch tenant.
How it talks to the backend
Every command hits the same REST API the dashboard uses
(/tasks, /skills, /runtimes, /refinement/*, /auth/me,
/auth/device/*). The CLI is a thin client — no business logic
lives here. See packages/sdk/ for a reusable TypeScript client.
Bundled bridge
agena daemon start looks for bridge-server.mjs in this order:
- Bundled inside the npm package (
<install-dir>/bridge/) - Monorepo checkout (
../../docker/bridge-server.mjs) ~/.agena/bridge-server.mjs./docker/bridge-server.mjsin the current working directory
The npm package ships the bridge so npm install -g @agenaai/cli
is self-contained.
