Expand description
Bamboo - A fully self-contained AI agent backend framework
Bamboo provides a complete backend system for AI agents, including:
- Built-in HTTP/HTTPS server (Actix-web)
- Agent execution loop with tool support
- LLM provider integrations (OpenAI, Anthropic, Google Gemini, GitHub Copilot)
- Session management and persistence
- Workflow and slash command systems
- Process management for external tools
- Claude Code integration
§Features
- Dual mode: Binary (standalone server) or library (embedded)
- Unified directory: All data in the Bamboo data directory (default
${HOME}/.bamboo) - Production-ready: Built-in CORS, rate limiting, security headers
§Quick Start
§Binary Mode
bamboo serve --port 9562 --data-dir "$HOME/.bamboo"§Library Mode
ⓘ
use bamboo_agent::{BambooServer, core::Config};
#[tokio::main]
async fn main() {
let config = Config::new();
let server = BambooServer::new(config);
server.start().await.unwrap();
}Re-exports§
pub use agent::llm;pub use agent::skill;pub use agent::tools;pub use core::config::ServerConfig;pub use core::Config;pub use error::BambooError;pub use error::Result;pub use process::ProcessRegistry;
Modules§
- agent
- Agent system - Complete AI agent framework
- claude
- Claude Code binary discovery and management
- commands
- Command and workflow management
- core
- Core types and utilities (migrated from chat_core)
- error
- Error types for Bamboo
- process
- Process management for external agent runs and Claude sessions
- server
- Unified HTTP server consolidating web_service and agent/server
Structs§
- Bamboo
Builder - Builder pattern for creating BambooServer
- Bamboo
Server - Main Bamboo server instance