Expand description
Claw Spawn
DigitalOcean VPS provisioning + OpenClaw bot orchestration.
§Standalone
Run the binary:
claw-spawn-server§Embedded (Axum)
When the server feature is enabled, this crate can be embedded into a larger Axum app:
ⓘ
use axum::Router;
use claw_spawn::infrastructure::AppConfig;
use claw_spawn::server::{build_state_with_pool, router};
use sqlx::PgPool;
let cfg = AppConfig::from_env()?;
let pool = PgPool::connect(&cfg.database_url).await?;
let state = build_state_with_pool(cfg, pool, true).await?;
let app = Router::new().nest("/spawn", router(state));Re-exports§
pub use application::*;pub use domain::*;pub use infrastructure::*;pub use server::*;
Modules§
- application
- domain
- infrastructure
- server
- HTTP server support (standalone + embeddable).