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 autoresearch;
20pub mod bootstrap;
21pub mod channel_check;
22pub mod channels;
23pub mod claw_adapter;
24pub mod config;
25pub mod context;
26pub mod cost;
27pub mod cron_scheduler;
28pub mod diagnostics;
29pub mod embeddings;
30pub mod escape;
31pub mod fs_secure;
32pub mod heartbeat;
33pub mod http;
34pub mod mcp;
35pub mod mcp_server;
36pub mod memory;
37pub mod plugin;
38pub mod plugin_exec;
39pub mod plugin_hosts;
40pub mod plugins;
41pub mod policy;
42pub mod process_cmd;
43pub mod prompt;
44pub mod providers;
45pub mod redaction;
46pub mod scheduler;
47pub mod self_update;
48pub mod shell_scan;
49pub mod skills;
50pub mod streaming_parser;
51#[cfg(feature = "swarm")]
52pub mod swarm;
53pub mod telegram_runtime;
54pub mod text;
55pub mod tools;
56pub mod trajectory;
57pub mod workspace_init;
58
59pub use agent::{AgentMode, AgentRunner};
60pub use channels::Channel;
61pub use cost::CostTracker;
62pub use scheduler::Scheduler;
63#[cfg(feature = "swarm")]
64pub use swarm::SwarmCoordinator;
65#[cfg(feature = "swarm")]
66pub use swarm::{ConcurrencyScheduler, DelegationManager, HandoffManager, TeamManager};