How to Get an OpenRouter API Key for CodingAGI
Follow these steps to obtain an OpenRouter API key for use with the CodingAGI extension. This key is essential for accessing AI models through OpenRouter.
Step 1: Sign In to OpenRouter
- Go to https://openrouter.ai/.
- Click "Sign In" in the top right menu.
- Choose your preferred sign-in method on the next page.
Note: If this is your first time signing in, you'll be directed to the profile page.
Step 2: Navigate to API Keys
- Click "OpenRouter" in the top left corner to return to the main page.
- Hover over or click your profile icon in the top right.
- In the dropdown menu, click "Keys".
Step 3: Create a New API Key
- On the Keys page, click the "Create Key" button.
- Set a name for your key.
- Optionally, set a spending limit.
- Click "Create" to generate the key.
- Click the clipboard icon to copy your new API key.
Step 4: Add Credits to Your Account
- Close the key creation window.
- Hover over your profile icon again and select "Credits" from the dropdown menu.
- Click the "Add Credits" button.
- Follow the prompts to add credits to your account.
Step 5: Configure CodingAGI with Your API Key
- Open the CodingAGI extension in Visual Studio Code.
- Navigate to the extension's settings.
- Paste your copied API key into the appropriate field.
- Click on the Save API Key button and now you're api key is saved.
Additional Information
You can delete and create a new API key at any time by following the same process. This can be useful for security purposes or if you suspect your key has been compromised.
For more information on using OpenRouter with CodingAGI, please refer to our documentation or contact our support team.
Remember:
Keep your API key secure and never share it publicly. If you believe your key has been compromised, delete it immediately and create a new one.