@agentium/cli
Theagentium command is the one-stop CLI for Agentium projects: scaffolding new apps, running a local dev server with auto-reload, installing skills from Git, and publishing your own skills.
Install
Commands
agentium init <name> — scaffold a new project
| Flag | Default | Meaning |
|---|---|---|
--template <name> | default | Pick a starter template (currently default, transport-express, with-rag, with-skills) |
--no-install | (off) | Skip npm install |
--git | (off) | git init after scaffolding |
agentium dev — local dev server with reload
- Loads
src/index.ts(orentryfromagentium.config.tsif present) - Watches
src/**and restarts on changes (debounced 150ms) - Streams agent output to the terminal with syntax-highlighted tool calls
- Exposes a local Express server with the agent at
POST /chat(UI-Stream protocol) — convenient for testing with the Vercel AI SDK or any frontend
| Flag | Default | Meaning |
|---|---|---|
--port <n> | 3000 | Server port |
--entry <path> | src/index.ts | Entry script |
--no-server | off | Don’t start the HTTP server; just watch + restart |
--inspect | off | Pass --inspect to Node for debugger attachment |
agentium skills install <git-url> — install a skill
- Clones the repo (or the
#refif specified) viaGitSkillLoader - Validates
SKILL.mdexists and parses cleanly - Writes the skill metadata to
agentium.config.tsunderskills - Adds the cache directory (
.agentium/skills/) to.gitignore
agentium dev run loads the skill automatically.
Flags:
| Flag | Default | Meaning |
|---|---|---|
--ref <tag> | (remote default branch) | Override the ref baked into the URL |
--subdir <path> | (none) | Path inside the repo where SKILL.md lives |
--force | off | Skip cache, re-clone |
agentium skills list
List installed skills with their pinned ref:
agentium skills publish — publish a skill to a Git repo
For skill authors. Inside a directory with SKILL.md:
- Validates
SKILL.mdshape (frontmatter, required keys) - Runs any
agentium skills lintchecks (description length, script existence) - Commits the working tree (if dirty), tags
v1.0.0, pushes to the configured remote
| Flag | Default | Meaning |
|---|---|---|
--tag <name> | required | Tag to publish |
--remote <name> | origin | Git remote |
--dry-run | off | Validate and stage, but don’t push |
agentium build — type-check and bundle for production
tsc --noEmit for typecheck, then bundles with esbuild into dist/. The output is a single CJS file that can be deployed to Node 20+, Cloudflare Workers, or any Edge runtime that ships Node-compat.
Flags:
| Flag | Default | Meaning |
|---|---|---|
--target <env> | node20 | esbuild target |
--outdir <dir> | dist | Output directory |
--minify | off | Minify the output |
agentium.config.ts
Created on first init. Lets you configure the CLI commands without command-line flags:
Environment variables
The CLI reads.env (and .env.local) at startup via dotenv. Common keys:
| Key | Used by |
|---|---|
OPENAI_API_KEY | OpenAI provider |
ANTHROPIC_API_KEY | Anthropic provider |
COHERE_API_KEY | CohereReranker |
VOYAGE_API_KEY | VoyageReranker |
E2B_API_KEY | E2BSandboxToolkit |
DAYTONA_API_KEY | DaytonaSandboxToolkit |
NEO4J_URI, NEO4J_USER, NEO4J_PASSWORD | Neo4jCypherStore |
CI integration
The CLI is friendly to non-interactive use:0 on success and non-zero on any failure. --strict mode upgrades warnings to errors where applicable.
Templates roadmap
Planned templates foragentium init:
transport-express— Express app withpipeAgentUIStreamToResponsetransport-next— Next.js Route Handler with Vercel UI Streamwith-rag— InMemoryVectorStore + sample docs + rerankerwith-skills— Pre-wired skill manager + git-installable skill loaderwith-mcp— Sample MCP server + connected client agentsandbox-agent— SandboxAgent with E2B backend
agentium init --template <name> is forward-compatible — new templates land without a CLI version bump.
See also
- Quickstart — manual walkthrough without the CLI
- Skills overview — the skill system the CLI manages
- Git-Installable Skills — what
skills installis doing under the hood