systemprompt-api 0.21.0

Axum-based HTTP server and API gateway for systemprompt.io AI governance infrastructure. Exposes governed agents, MCP, A2A, and admin endpoints with rate limiting and RBAC.
Documentation
//! Admin-only routes mounted under the gateway's authenticated admin scope.
//!
//! Composes the CLI gateway (`cli`) and API-key management (`keys`)
//! sub-routers.

mod cli;
mod keys;

use axum::Router;
use systemprompt_runtime::AppContext;

#[cfg(feature = "test-api")]
pub use cli::test_api as cli_test_api;

pub fn router() -> Router<AppContext> {
    Router::new()
        .nest("/cli", cli::router())
        .nest("/api-keys", keys::router())
}