Octrafic is an open-source command-line interface (CLI) tool that revolutionizes API testing by allowing developers to describe test scenarios in plain English. The AI agent interprets natural language commands, plans test strategies, executes real HTTP requests against APIs, validates responses, and generates comprehensive PDF reports—all from the terminal.
Key Features
- Natural Language API Testing: Describe what you want to test in plain English (e.g., "Test /users endpoint") without writing code
- Real API Execution: Makes actual HTTP requests to your API endpoints with real status codes and error handling
- Automated PDF Reports: Generate professional PDF reports with test results for team sharing
- OpenAPI Spec Generation: Automatically create OpenAPI 3.1 specifications from your codebase using
octrafic scan - Multiple LLM Provider Support: Works with OpenAI, Claude, OpenRouter, Ollama, and other OpenAI-compatible APIs
- Headless CI/CD Mode: Run tests in automated pipelines without interactive prompts
- Schema Validation: Automatically validate API responses against OpenAPI specifications
Use Cases
- Backend Development: Test REST APIs during development without writing test scripts
- CI/CD Integration: Automate API testing in GitHub Actions, GitLab CI, or Jenkins pipelines
- QA Testing: Enable non-technical team members to test APIs using natural language
- API Documentation Validation: Verify that APIs behave as documented in OpenAPI/Swagger specs
- Regression Testing: Ensure API changes don't break existing functionality
Technical Details
- Platform: Single binary written in Go with no runtime dependencies
- Compatibility: Works on Linux, macOS, and Windows
- License: Open source and free forever
- Architecture: Terminal-first design as a lightweight alternative to GUI tools like Postman

