# boundaryai — Rust SDK
Rust client for the **BoundaryAI** universal AI firewall — deterministic action-level enforcement for AI agents, LLM tool calls, system commands, and API access.
Patent Pending US #64/029,125
## Install
```toml
[dependencies]
boundaryai = "0.6"
```
## Usage
```rust
use boundaryai::{Client, Action};
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let client = Client::new("bai_xxx", "https://boundaryai-engine-248951128296.us-east1.run.app");
let decision = client
.evaluate(Action::new("system.command").scope("rm -rf /data"))
.await?;
if decision.blocked() {
eprintln!("BLOCKED: {}", decision.reason);
}
Ok(())
}
```
## Features
- Async / tokio
- Retry with exponential backoff
- Fail-open / fail-closed modes
- Built-in PII scanner (SSN, credit cards, AWS keys, passwords, GitHub PATs, API keys)
- Full coverage of the `/v1/evaluate` contract
## Links
- Homepage: <https://boundaryai.ai>
- Docs: <https://docs.rs/boundaryai>
- Repository: <https://github.com/skvcool-rgb/BoundaryAI>
## License
MIT