Open source CLI tool for automated API testing and reporting. Test your APIs by describing what you want in natural language.
$ curl -fsSL https://octrafic.com/install.sh | bash░█▀█░█▀▀░▀█▀░█▀▄░█▀█░█▀▀░▀█▀░█▀▀ ░█░█░█░░░░█░░█▀▄░█▀█░█▀▀░░█░░█░░ ░▀▀▀░▀▀▀░░▀░░▀░▀░▀░▀░▀░░░▀▀▀░▀▀▀
how it works
Octrafic handles the entire testing workflow automatically
Describe what to test in plain English
Plans test scenarios and strategies
Executes real HTTP calls to your API
Verifies responses and status codes
Generates PDF with test results
showcase
See how Octrafic handles different API testing scenarios automatically.
Describe what to test in plain English - the agent handles the rest.
I'll test the /users endpoint. Let me get the details first. ➔ Getting endpoint details GET /users, POST /users Found 2 endpoints. Generating happy path test cases... ➔ Executing tests ✓ GET /users Status: 200 | Duration: 145ms ✗ POST /users Status: 500 | Duration: 375ms
Export test results to a styled PDF with one command.
➔ Executing tests ✓ GET /users Status: 200 | Duration: 145ms ✗ POST /users Status: 500 | Duration: 375ms 2 tests - 1 passed, 1 failed.
Generating a PDF report from the last test session. ✓ Saved to ~/Documents/octrafic/ octrafic-report-2025-02-27.pdf
No spec? Generate one directly from your source code.
$ octrafic scan -p ./my-api -o spec.yaml ➔ Framework detection ↳ Detected: Go / net-http ➔ Route discovery ↳ Found 4 routing files ➔ Parallel endpoint extraction ✓ users.go (8 endpoints) ✓ orders.go (6 endpoints) ✓ products.go (5 endpoints) ✓ auth.go (3 endpoints) ➔ Specification generation ✅ Scan complete! Generated specification saved to spec.yaml
Run tests in CI/CD pipelines - no TUI, no prompts, just exit codes.
$ octrafic test \ --url https://api.acme.com \ --path tests/api-tests.json \ --auth bearer --token $TOKEN Starting execution of 4 tests in postman spec... [1/4] GET /users OK (142ms) ✅ [2/4] POST /users OK (231ms) ✅ [3/4] GET /users/:id OK (98ms) ✅ [4/4] DELETE /users/:id FAILED (Status 500) ❌ ============================================= Summary: 4 executed, 3 passed, 1 failed
Catch response mismatches against your OpenAPI spec automatically.
➔ Testing 5 endpoints ⚠ GET /users/u1/broken Status: 200 | Duration: 1ms · name: required field is missing · age: expected integer, got string · id: expected string, got float64 ⚠ GET /products/p1/broken Status: 200 | Duration: 0ms · price: expected number, got string · in_stock: required field is missing ✓ GET /nullable-test Status: 200 | Duration: 0ms
"Testing APIs used to be the boring part of my day. With Octrafic it takes half the time - I write less, test more, and actually catch issues before they hit production."
features
Write what you want tested. The agent breaks it into scenarios, hits the endpoints, and reports back. Test REST APIs without writing code.
Tests run against your actual API. Real status codes, real errors. No mocks.
Export test results to PDF. Perfect for sharing with your team. Learn how.
Use OpenAI, Claude, OpenRouter, or run models locally with Ollama and llama.cpp. Switch providers anytime without changing your tests. View all providers.
No spec? Run octrafic scan to automatically generate an OpenAPI 3.1 spec from your codebase.
use cases
Whether you're building APIs, automating tests, or validating OpenAPI specs, Octrafic fits seamlessly into your development process.
Backend developers can test API endpoints during development using natural language. No need to write test scripts or maintain complex frameworks.
DevOps teams can integrate Octrafic into GitHub Actions, GitLab CI, or Jenkins. Run automated API tests on every commit and catch regressions early.
Import your OpenAPI or Swagger spec and verify that your API behaves as documented. Octrafic automatically understands your endpoints and schemas.
QA engineers without coding experience can test APIs using natural language commands. Describe what you want tested, and the AI handles the rest.
Terminal-first developers get a lightweight alternative to GUI tools like Postman. Single binary, no runtime dependencies, works everywhere.
Ensure API changes don't break existing functionality. Run regression tests automatically and export professional PDF reports for stakeholders.
faq
Yes. Octrafic is open source and free to use with no limits. You bring your own LLM API key. View source code.
OpenAI, Anthropic, and any OpenAI-compatible API (Ollama, LM Studio, etc). Configure via environment variable or project settings. Configuration guide.
Any HTTP API. You can point it at an OpenAPI spec or just give it a base URL and describe what to test.
Just describe what you want to test - for example "check if /users returns paginated results". The AI agent figures out what requests to make, runs them, and validates the responses.
It's a single binary written in Go. Works on Linux, macOS, and Windows. No runtime dependencies. Installation instructions.
comparison
Unlike Postman's GUI interface, Octrafic is a lightweight CLI tool that fits naturally into your terminal workflow. No electron app, no heavy UI. Just a single binary that works everywhere.
While curl is powerful, it requires manual crafting of requests and validation. Octrafic uses AI to understand your API and automatically generates meaningful tests from natural language.
Traditional frameworks like Jest or Pytest require writing and maintaining test code. Octrafic lets you describe what to test in natural language. No boilerplate, no learning curve.
get started
Open source CLI tool. Single binary. No telemetry. Works everywhere.