AsteroidRouter
/ Overview
Get API Key
v1.2.0 is now live

AsteroidRouter Docs

AsteroidRouter is a unified OpenAI-compatible endpoint for top AI models (GPT, Claude, Gemini, and more) at low per-token prices. Integrate once and automatically get redundancy, lowest latencies, and real-time fallbacks.

Integration Methods

CLI Integration

CLI

Deploy, monitor, and run tests directly from the terminal. Route queries locally with minimal config.

npm install -g @asteroidrouter/cli
Agent Frameworks

Agents

Integrate directly with Autogen, CrewAI, LangChain, and other multi-agent libraries with instant API failovers.

View multi-agent tutorial
Editor Integration

VS Code extension

Leverage local autocomplete, smart suggestions, and contextual diagnostics inside VS Code without latency drops.

Install from VS Code Marketplace
Direct Endpoint

API

Swap the standard baseURL in any OpenAI SDK to utilize our intelligent routing algorithms instantly.

https://api.asteroidrouter.ai/v1

Before You Start

1

Generate an API Key

Log into the AsteroidRouter Console, navigate to the **API Keys** tab, and generate a new key. Be sure to copy it immediately as it will not be displayed again for security purposes.

2

Configure Environment Variables

Save the generated key to your environment. We recommend utilizing `.env` files for local development to prevent committing keys to source repositories.

# Save your key locally
ASTEROIDROUTER_API_KEY="sk-ar-xxxxxxxxxxxxxxxxxxxxxxxx"
3

Setup Fallback Models (Optional)

Configure your routing group. Set standard models (e.g. `gpt-4o`) and backup fallback chains (e.g. `claude-3-5-sonnet`) to guarantee 100% uptime even during upstream provider outages.

Need direct help? Contact our design & engineering crew at support@asteroidclothing.com
All networks operational