@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
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
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:
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
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:
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:
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