Skip to main content

@agentium/cli

The agentium 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

Confirm install:

Commands

agentium init <name> — scaffold a new project

What it creates:
Flags:

agentium dev — local dev server with reload

What it does:
  • Loads src/index.ts (or entry from agentium.config.ts if 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
Flags:

agentium skills install <git-url> — install a skill

What it does:
  • Clones the repo (or the #ref if specified) via GitSkillLoader
  • Validates SKILL.md exists and parses cleanly
  • Writes the skill metadata to agentium.config.ts under skills
  • Adds the cache directory (.agentium/skills/) to .gitignore
The next 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:
What it does:
  • Validates SKILL.md shape (frontmatter, required keys)
  • Runs any agentium skills lint checks (description length, script existence)
  • Commits the working tree (if dirty), tags v1.0.0, pushes to the configured remote
Flags:

agentium build — type-check and bundle for production

Runs 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:
All CLI flags override the corresponding config fields.

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:
All commands exit with code 0 on success and non-zero on any failure. --strict mode upgrades warnings to errors where applicable.

Templates roadmap

Planned templates for agentium init:
  • transport-express — Express app with pipeAgentUIStreamToResponse
  • transport-next — Next.js Route Handler with Vercel UI Stream
  • with-rag — InMemoryVectorStore + sample docs + reranker
  • with-skills — Pre-wired skill manager + git-installable skill loader
  • with-mcp — Sample MCP server + connected client agent
  • sandbox-agent — SandboxAgent with E2B backend
agentium init --template <name> is forward-compatible — new templates land without a CLI version bump.

See also