GitHub repository
Source code, releases, and full documentation.
Features
Full API v2 compatibility
All endpoints supported with request validation via OpenAPI specs and realistic error responses.
Interactive web UI
Visual endpoint explorer at
http://localhost:8080/playground for testing in the browser.No credits needed
Everything runs locally with mock data — no API keys or billing required.
Stateful operations
In-memory state with optional file persistence. Create posts, then look them up.
Installation
Requires Go 1.21+. Install from source or download a pre-built binary from releases.- Go install
- Build from source
http://localhost:8080 by default.
Quick start
Make requests just like you would to the real API — usetest_token as your bearer token:
http://localhost:8080/playground in your browser for the interactive UI.
What’s included
| Feature | Description |
|---|---|
| Request validation | Validates requests against the OpenAPI spec |
| Realistic errors | Returns proper error codes and messages |
| Streaming support | Simulated streaming endpoints |
| Rate limiting | Configurable rate limit simulation |
| CORS support | Works with browser-based applications |
| Usage tracking | Simulated billing and credit tracking endpoints |
| State persistence | Optional file persistence in ~/.playground/ |
Related
xurl
CLI tool for the real X API with built-in authentication.
Make your first request
Ready for the real API? Make your first request.