CLI quickstart
Link a project to a workspace, then read a run, check the spend ceiling, and ground a question in the knowledge graph.
This walkthrough assumes you have installed the CLI and authenticated it. Run the commands from the root of a project whose agents you govern.
1. Link the project
oxagen initinit resolves an org and workspace (it asks you to pick when you belong to more than one) and saves the pair in ~/.config/oxagen/config.json. Every other command addresses that pair, so you don't pass --org or --workspace each time. init writes no file into the project.
It then checks whether the workspace has a GitHub connection and offers to create one, so the knowledge graph has a source to ground on. Running init again keeps the saved pair instead of asking again.
Name the org and workspace to link without a prompt, for example in CI:
oxagen init --org acme --workspace payments2. Check the spend ceiling
oxagen budget showThis prints each configured spend ceiling (the org's and the active workspace's) with its live burn: period-to-date spend, the projection to the end of the period, and whether the admission gate is denying requests now.
Set one in Oxagen, on the Budgets tab of Guardrails. Only a person signed in to Oxagen can set a ceiling, so the CLI's key cannot. oxagen budget set prints that page and opens it for you:
oxagen budget setSee Spend budgets for the threshold ladder and the rolling-window form.
3. Price a workload before it runs
oxagen cost makes no network call. It prices token counts against the rate card built into the CLI:
oxagen cost --in 200000 --out 40000With no --model, it compares every priced model, cheapest first, and reports the spread. Add -m <slug> for one model, or --rates to print the card.
4. Explain what an agent did
Given a run id, oxagen run turns lists each turn with its model and tool steps, tokens and cost. oxagen run transcript prints what the agent did:
oxagen run turns tse_01J8…
oxagen run transcript tse_01J8…5. Ground a question in the graph
oxagen graph search -q "where do we enforce tenant isolation?" -n 5The query runs online and returns only the bounded results your workspace grants allow. There is no local copy of the workspace graph. See Knowledge graph from the CLI.
6. Curate what agents have learned
oxagen memory list # ranked by how often runs used them
oxagen memory show mem_01J8…
oxagen memory promote mem_01J8… --kind code-rule --force must
oxagen memory dismiss mem_01J9… --reason coveredA promoted memory becomes a steering record on the memory PR, and it steers other agents once the PR merges. See Memory from the CLI.
7. Manage environments and secrets
oxagen env list
oxagen secret list # masked metadata only
oxagen secret set DATABASE_URL "postgres://…" --env staging
oxagen secret reveal DATABASE_URL --env staging # recorded to the access logNext steps
- Command reference: every command and flag.
- Spend budgets: the ceilings that gate agent runs.
- Memory from the CLI and Knowledge graph from the CLI: the two grounding surfaces.
Account setup
Get an Oxagen account, mint an Oxagen API key, and authenticate the CLI.
Command reference
Every oxagen command and flag: spend, prices and billing, steering and repositories, agents and work orders, runtimes and sandboxes, runs and their evidence, the knowledge graph, the code graph, agent memory, environments, secrets, API keys, and the market router.