Aperture
A CLI that generates commands from OpenAPI specifications.
Aperture parses OpenAPI 3.x specs once, caches them, and exposes every operation as a CLI command with structured JSON output. Built for automation: AI agents, scripts, CI/CD pipelines.
Why Aperture?
Fast: Sub-10ms startup time. Binary-cached specs eliminate parsing overhead.
Small: 4.0MB static binary. No runtime dependencies.
Correct: Structured JSON output. Machine-readable errors. Predictable exit codes.
Secure: Credentials resolved from environment variables only—never stored in config.
Agent-First: Self-describing capability manifests. Batch operations. Idempotency support.
Performance
| Metric | Value |
|---|---|
| Binary size | 4.0 MB |
| Startup time | < 10 ms |
| Memory (typical) | 3-5 MB |
| Spec loading | O(1) from binary cache |
Quick Start
# Install
# Register an API
# Configure authentication
# Discover available operations
# Execute a command
Agent Integration
Aperture provides features specifically for programmatic use:
# Get capability manifest (for agent discovery)
# Structured errors (for programmatic handling)
# Preview without executing
# Batch operations with concurrency control
See Agent Integration Guide for patterns and examples.
Installation
Homebrew (macOS/Linux)
cargo-binstall (Pre-built Binaries)
Nix
# Install directly
# With JQ support
# With all features
From crates.io
From Source
Optional Features
# Full JQ filtering support
# OpenAPI 3.1 support
# Both
Documentation
| Document | Description |
|---|---|
| User Guide | Day-to-day usage, commands, output formats |
| Agent Integration | Capability manifests, batch ops, integration patterns |
| Security Model | Authentication, secrets management |
| Configuration | URLs, environments, cache management |
| Architecture | Technical design and internals |
| Contributing | Development setup, testing, guidelines |
Project Status
Experimental: Core functionality is implemented and tested. API and features may evolve based on usage and feedback.
License
MIT License. See LICENSE for details.