| Crates.io | spec-ai-cli |
| lib.rs | spec-ai-cli |
| version | 0.6.0-prerelease.12 |
| created_at | 2025-11-25 00:14:08.298888+00 |
| updated_at | 2026-01-04 05:07:26.140505+00 |
| description | A framework for building AI agents with structured outputs, policy enforcement, and execution tracking |
| homepage | |
| repository | https://github.com/geoffsee/spec-ai |
| max_upload_size | |
| id | 1948937 |
| size | 240,918 |
Command-line interface and REPL for the spec-ai framework.
This crate provides the user-facing CLI and interactive REPL for interacting with AI agents. Features include:
The CLI supports all core features through feature flags:
openai - OpenAI API integrationlmstudio - LM Studio local modelsweb-scraping - Web scraping capabilitiesvttrs - Video/subtitle processingapi - HTTP API server integrationanthropic - Anthropic Claude APIollama - Ollama local modelsmlx - Apple MLX frameworkbundled - Bundled DuckDB (recommended)duck-sys - System DuckDB library# Install from source
cargo install spec-ai --features bundled
# Or use cargo-binstall
cargo binstall spec-ai --features bundled
# Start interactive session
spec-ai
# Use custom config
spec-ai --config /path/to/config.toml
# Run a spec file
spec-ai run my-task.spec
# Show help
spec-ai --help
Within the interactive session:
/spec run <file> - Execute a spec file/help - Show available commands/exit or Ctrl+D - Exit the sessionCreate reusable task specifications in .spec files:
name = "Example Task"
goal = "Demonstrate spec file usage"
tasks = [
"Step 1: Do something",
"Step 2: Do something else"
]
deliverables = [
"Output artifact",
"Documentation"
]
Run with:
spec-ai run example.spec
This crate depends on:
spec-ai-core - Core agent runtimespec-ai-config - Configuration managementspec-ai-policy - Policy enforcementspec-ai-api - API server (optional)Run from source:
cargo run -p spec-ai-cli
For detailed documentation, see:
docs/SETUP.md - Setup instructionsdocs/CONFIGURATION.md - Configuration guide