17 releases (8 stable)
| 1.7.0 | Mar 29, 2026 |
|---|---|
| 1.6.0 | Mar 22, 2026 |
| 0.3.0 | Mar 4, 2026 |
| 0.2.1 | Mar 3, 2026 |
| 0.1.2 | Dec 18, 2025 |
#2305 in HTTP server
Used in vex-server
1MB
24K
SLoC
vex-api
Industry-grade HTTP API gateway for the VEX Protocol.
Features
- RESTful API - Full CRUD operations for agents
- JWT Authentication - Secure API access
- Rate Limiting - Protect against abuse
- Circuit Breaker - Resilient external service calls
- OpenTelemetry - Production observability
Installation
[dependencies]
vex-api = "0.1"
Quick Start
use vex_api::Server;
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let server = Server::new()
.bind("0.0.0.0:3000")
.build()
.await?;
server.run().await?;
Ok(())
}
API Endpoints
POST /api/v1/agents- Create a new agentPOST /api/v1/agents/:id/execute- Execute agent task (Adversarial/Verified)GET /api/v1/jobs/:id- Poll execution resultsGET /api/v1/routing/stats- View routing cost savingsGET /api/v1/routing/config- Configure routing strategy (Admin)GET /health- Health check
License
Apache-2.0 License - see LICENSE for details.
Dependencies
~110–155MB
~2.5M SLoC