Skip to main content

apollo/
lib.rs

1//! apollo — Lightweight agent runtime
2//! Successor to OpenClaw. Best-of-breed from ZeroClaw, NanoClaw, HiClaw.
3//!
4//! Core traits (all swappable):
5//! - `Provider` — LLM backend (Anthropic, OpenAI, Gemini, Ollama, OpenRouter, Groq)
6//! - `Channel` — Communication (CLI, Telegram, Discord, Matrix, WebSocket)
7//! - `Tool` — Agent capability (Shell, File I/O, Vibemania, custom)
8//! - `MemoryBackend` — Persistent SurrealDB state, vector embeddings, file-based tooling
9//!
10//! Embeddings — Vector search for semantic memory
11//! Swarms — Manager/Worker pattern for parallel execution
12//! Plugins — JSON-RPC 2.0 extensibility
13//! Cost — Token counting and billing (Phase 4)
14//! Scheduler — Cron-based task automation (Phase 4)
15
16pub mod agent;
17pub mod agent_http;
18pub mod autonomous;
19pub mod bootstrap;
20pub mod channel_check;
21pub mod channels;
22pub mod claw_adapter;
23pub mod config;
24pub mod context;
25pub mod cost;
26pub mod cron_scheduler;
27pub mod diagnostics;
28pub mod embeddings;
29pub mod escape;
30pub mod fs_secure;
31pub mod heartbeat;
32pub mod http;
33pub mod mcp;
34pub mod mcp_server;
35pub mod memory;
36pub mod plugin;
37pub mod plugin_exec;
38pub mod plugin_hosts;
39pub mod plugins;
40pub mod policy;
41pub mod process_cmd;
42pub mod prompt;
43pub mod providers;
44pub mod redaction;
45pub mod scheduler;
46pub mod self_update;
47pub mod shell_scan;
48pub mod skills;
49pub mod streaming_parser;
50#[cfg(feature = "swarm")]
51pub mod swarm;
52pub mod telegram_runtime;
53pub mod text;
54pub mod tools;
55pub mod trajectory;
56pub mod workspace_init;
57
58pub use agent::{AgentMode, AgentRunner};
59pub use channels::Channel;
60pub use cost::CostTracker;
61pub use scheduler::Scheduler;
62#[cfg(feature = "swarm")]
63pub use swarm::SwarmCoordinator;
64#[cfg(feature = "swarm")]
65pub use swarm::{ConcurrencyScheduler, DelegationManager, HandoffManager, TeamManager};