GitHub repository
Source code, releases, and documentation.
Installation
Install with Go, or download a pre-built binary from releases.Setup
1. Create an X app
xurl authenticates using your own developer app. In the X Developer Portal:- Create (or open) an app with OAuth 2.0 enabled.
- Register the redirect URI
http://localhost:8080/callbackon the app. - Copy the app’s Client ID and Client Secret from the “Keys and tokens” page.
2. Set your credentials
Export the credentials in the same shell you’ll run xurl from:3. Authorize
~/.xurl so you don’t need to authenticate again.
Usage
Raw API requests
Use xurl like curl — it handles auth headers automatically:Shortcut commands
xurl includes built-in shortcuts for common operations:Why use xurl?
| Feature | curl | xurl |
|---|---|---|
| Authentication | Manual OAuth header setup | Automatic — just run xurl auth once |
| Token management | You handle refresh/rotation | Built-in token storage and refresh |
| API shortcuts | Full URL required | Shorthand commands for common tasks |
| Request signing | Manual OAuth 1.0a signing | Automatic for all requests |
Using xurl with AI agents
xurl includes aSKILL.md file that describes its capabilities in a machine-readable format. AI agents can use this to understand how to invoke xurl commands on your behalf.
Related
Make your first request
Get started with the X API using cURL or SDKs.
API Playground
Test endpoints locally with mock data — no API credits needed.