Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
mini_claw
Lightweight Rust agent platform designed to run on a Raspberry Pi. Connects to Discord, calls LLMs, runs tools, and supports heartbeat + cron proactive triggers.
Quick Start
1. Set environment variables
# Required – OpenAI API key
# Required – Discord bot token
# Optional – log level (debug, trace, mini_claw=trace)
2. Build
3. Run
# Start the daemon (loads ~/.pinchy/config.yaml by default)
# Use a custom config path
4. Scaffold a new agent
5. Debug CLI
Run with verbose logging to troubleshoot:
RUST_LOG=debug
Configuration
A minimal config looks like:
models:
- id: openai-default
provider: openai
model: gpt-4o
api_key: $OPENAI_API_KEY
channels:
discord:
token: $DISCORD_TOKEN
agents:
- id: assistant
workspace: ./agents/assistant
model: openai-default
heartbeat_secs: 300
Environment Variables
| Variable | Description |
|---|---|
OPENAI_API_KEY |
OpenAI API key for model calls |
DISCORD_TOKEN |
Discord bot token |
RUST_LOG |
Logging filter (e.g. info, debug, mini_claw=trace) |
Project Structure
src/
├── main.rs # Entry point, wires everything
├── config/ # Config loading & validation
├── discord/ # Discord channel connector
├── agent/ # Agent runtime, prompt building, sessions
├── models/ # LLM provider trait + implementations
├── tools/ # Built-in tools (read, write, exec)
└── scheduler/ # Heartbeat + cron scheduling
Development
CI
A GitHub Actions workflow (.github/workflows/ci.yml) runs on every push and PR to main:
cargo fmt -- --checkcargo testcargo build --release
Agents now use a canonical per-agent workspace at agents//workspace. Each workspace contains agent-specific files (SOUL.md, TOOLS.md, HEARTBEAT.md, sessions/) and a BOOTSTRAP.md template to document onboarding. See CONSOLIDATION.md and agents/default/BOOTSTRAP.md for the consolidation plan and bootstrap template.
React Admin UI (In Progress)
A new React frontend is being migrated under web/.
Production build artifacts are emitted to static/react/ and can be opened at /react/index.html while the legacy UI remains at /.