Writing API tests is tedious. You either click through Postman manually, write JavaScript test scripts, or wrestle with curl flags you forget every time. I built Octrafic to fix that - you describe what you want tested in plain English, and the AI handles the rest. This is a quick guide on how to actually use it. Single binary, no runtime dependencies. # Linux/macOS curl -fsSL https://octrafic.com/install.sh | bash

# Homebrew brew install octrafic/tap/octrafic

# Windows iex (iwr -useb https://octrafic.com/install.ps1)

Octrafic supports Claude, OpenAI, OpenRouter, Gemini, Ollama, and llama.cpp. You bring your own API key - nothing goes through my servers. Run octrafic for the first time and it'll walk you through the setup.

If you want to run everything locally without any API key, Ollama works great: ollama pull qwen2.5:7b

Then point Octrafic at it during setup. octrafic -u https://api.example.com -s openapi.json -n "My API"

-u - your API base URL -s - path to your OpenAPI/Swagger spec -n - project name Once you're in the TUI, just describe what you want tested: test the login endpoint with valid credentials test the login endpoint with a wrong password test creating a new user and check the response structure run edge cases on the /users endpoint

The AI figures out the right HTTP method, URL, headers, and payload based on your spec. It executes the request and shows you the response with a pass/fail result.

Pass auth via CLI flags when starting a session: # Bearer token octrafic -u https://api.example.com -s spec.json \ --auth bearer --token "your-token-here"

# API key octrafic -u https://api.example.com -s spec.json \ --auth apikey --key X-API-Key --value "your-key-here"

# Basic auth octrafic -u https://api.example.com -s spec.json \ --auth basic --user admin --pass secret123

Or use environment variables if you don't want credentials in your shell history or project files: export OCTRAFIC_AUTH_TYPE=bearer export OCTRAFIC_AUTH_TOKEN=your-token-here