Test your APIs in plain English, straight from the terminal

Open source CLI tool for automated API testing and reporting. Test your APIs by describing what you want in natural language.

Linux MacOS Windows Go

$ curl -fsSL https://octrafic.com/install.sh | bash

API Testing

░█▀█░█▀▀░▀█▀░█▀▄░█▀█░█▀▀░▀█▀░█▀▀
░█░█░█░░░░█░░█▀▄░█▀█░█▀▀░░█░░█░░
░▀▀▀░▀▀▀░░▀░░▀░▀░▀░▀░▀░░░▀▀▀░▀▀▀

Testing:

https://api.example.com

Hi! I can help you test your API. You can ask me questions or tell me to run tests.

Test /users endpoint

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...


From Command to Report in Seconds

Octrafic handles the entire testing workflow automatically.

Natural Language

Describe what to test in plain English.

AI Agent

Plans test scenarios and strategies.

API Requests

Executes real HTTP calls to your API.

Validation

Verifies responses and status codes.

Report

Generates PDF with test results.

One tool. Every workflow.

See how Octrafic handles different API testing scenarios automatically.

Natural Language Testing

Describe what to test in plain English - the agent handles the rest.

Test /users endpoint

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

PDF Reports

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.

Export the results as PDF

Generating a PDF report from the last test session.
✓ Saved to ~/Documents/octrafic/
  octrafic-report-2025-02-27.pdf

OpenAPI Auto-Scan

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

Headless Mode

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

Schema Validation

Catch response mismatches against your OpenAPI spec automatically.

Validate schema on broken endpoints

➔ 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."

Fibogacci

Core Features for API Testing

Natural Language API Testing

Write what you want tested. The agent breaks it into scenarios, hits the endpoints, and reports back. Test REST APIs without writing code.

Real API Requests

Tests run against your actual API. Real status codes, real errors. No mocks.

One-Command PDF

Export test results to PDF. Perfect for sharing with your team. Learn how.

Multiple LLM Provider Support

Use OpenAI, Claude, OpenRouter, or run models locally with Ollama and llama.cpp. Switch providers anytime without changing your tests. View all providers.

Perfect for Every Developer Workflow

Whether you're building APIs, automating tests, or validating OpenAPI specs, Octrafic fits seamlessly into your development process.

Test REST APIs Without Writing Code

Backend developers can test API endpoints during development using natural language. No need to write test scripts or maintain complex frameworks.

Automate API Testing in CI/CD Pipelines

DevOps teams can integrate Octrafic into GitHub Actions, GitLab CI, or Jenkins. Run automated API tests on every commit and catch regressions early.

Validate OpenAPI Specifications

Import your OpenAPI or Swagger spec and verify that your API behaves as documented. Octrafic automatically understands your endpoints and schemas.

API Testing for Non-Technical Teams

QA engineers without coding experience can test APIs using natural language commands. Describe what you want tested, and the AI handles the rest.

Lightweight Postman Alternative for CLI

Terminal-first developers get a lightweight alternative to GUI tools like Postman. Single binary, no runtime dependencies, works everywhere.

API Regression Testing Automation

Ensure API changes don't break existing functionality. Run regression tests automatically and export professional PDF reports for stakeholders.

Frequently Asked Questions About Octrafic

Is it really free?
Yes. Octrafic is open source and free to use with no limits. You bring your own LLM API key. View source code.

Which LLM providers are supported?
OpenAI, Anthropic, and any OpenAI-compatible API (Ollama, LM Studio, etc). Configure via environment variable or project settings. Configuration guide.

Does it work with any API?
Any HTTP API. You can point it at an OpenAPI spec or just give it a base URL and describe what to test.

How does natural language testing work?
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.

What languages/platforms?
It's a single binary written in Go. Works on Linux, macOS, and Windows. No runtime dependencies. Installation instructions.

Why Choose Octrafic Over Other API Testing Tools?

vs Postman

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.

vs curl

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.

vs Test Frameworks

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.

Stop writing test scripts. Start testing in plain English.

Open source CLI tool. Single binary. No telemetry. Works everywhere.

Linux MacOS Windows Go

$ curl -fsSL https://octrafic.com/install.sh | bash

Documentation GitHub