getapi
Stop Googling "how to get Twitter API key". Just run
getapi twitter.
getapi is a CLI that walks you through setting up API credentials for popular services. Instead of hunting through documentation, signup flows, and developer portals, getapi gives you step-by-step interactive guidance and writes the credentials to your project when you're done.
Documentation: m2de.github.io/getapi
Quick Start
# Install
# Set up Twitter API credentials
# Set up Stripe (writes to .env by default)
# See all available providers
Install
Homebrew
Cargo (from source)
npm (prebuilt binaries)
Binary download
Prebuilt binaries for macOS, Linux, and Windows are available on the GitHub Releases page.
Providers
getapi ships with 20 built-in provider recipes:
| Provider | Category | Estimated Time |
|---|---|---|
| Anthropic / Claude API | AI, LLM | ~5 min |
| Auth0 | Auth, Identity | ~5 min |
| Clerk | Auth, Identity | ~5 min |
| Cloudflare API | CDN, Edge, DNS | ~5 min |
| Discord Bot | Messaging, Social | ~10 min |
| Firebase | Database, Backend, Auth | ~5 min |
| GitHub API | Developer Tools, Git | ~3 min |
| Google Maps API | Maps, Location | ~5 min |
| Notion API | Productivity, Notes | ~5 min |
| OpenAI API | AI, LLM | ~5 min |
| Resend | Email, Messaging | ~3 min |
| SendGrid Email API | Email, Messaging | ~10 min |
| Shopify Admin API | Ecommerce, Payments | ~10 min |
| Slack API | Messaging, Productivity | ~10 min |
| Spotify API | Music, Entertainment | ~5 min |
| Stripe API | Payments, Fintech | ~5 min |
| Supabase | Database, Backend, Auth | ~5 min |
| Twilio SMS & Voice API | Messaging, SMS, Voice | ~10 min |
| Twitter / X API | Social, Messaging | ~10 min |
| Vercel API | Deployment, Hosting | ~3 min |
Usage
Basic setup
# Interactive setup for a provider
# Example
Commands
Options
Manifest file
Create a getapi.toml manifest in your project to declare which providers your project needs:
[]
= { = ".env" }
= { = ".env" }
= { = ".env" }
Then run getapi with no arguments to set up all missing providers.
For AI Agents
getapi is designed to work well with AI coding agents:
getapi <provider> --helpshows the full setup flow without running itgetapi <provider> --non-interactiveprints all steps as plain text, so an agent can relay instructions to a user or parse the credential requirements- All provider recipes are JSON files in
providers/and can be read directly
Adding a Provider
The most common contribution is adding a new provider recipe. See CONTRIBUTING.md for the recipe JSON structure, step types, and testing instructions.
How It Works
- Recipe files in
providers/define the step-by-step flow for each service as JSON - The runner walks the user through each step: opening URLs, prompting for input, offering choices, and validating credentials
- Sessions track progress so you can pause and resume long setup flows
- Output writes collected credentials to
.env, JSON, or YAML files