> ## Documentation Index
> Fetch the complete documentation index at: https://docs.matterai.so/llms.txt
> Use this file to discover all available pages before exploring further.

# Cursor Editor

> Configure Cursor IDE to work with Axon AI code generation

### Get API Key

<CardGroup cols={2}>
  <Card title="Get API Key" icon="key" href="/axon-ai/api-keys">
    Generate a new API key
  </Card>
</CardGroup>

## Configuration

To integrate Cursor with Axon, configure the following settings in Cursors Model's Configuration:

### Add axon-code Model to Cursor

<Frame>
  <img className="block" src="https://mintcdn.com/gravitycloud-9ebb5c50/RMEHy12s-XQmPuO6/images/axon/add-axon-model-cursor.png?fit=max&auto=format&n=RMEHy12s-XQmPuO6&q=85&s=506055dfd4ee0a9a20596c199b37e9be" alt="Axon Cursor Setup" width="2130" height="1160" data-path="images/axon/add-axon-model-cursor.png" />
</Frame>

### Configure MatterAI as API Provider

<Frame>
  <img className="block" src="https://mintcdn.com/gravitycloud-9ebb5c50/uVnv77GQtH6kvxbr/images/axon/axon-cursor-setup.png?fit=max&auto=format&n=uVnv77GQtH6kvxbr&q=85&s=9249d7cf983a5d6cbeed57c35fa2a989" alt="Axon Cursor Setup" width="2940" height="1736" data-path="images/axon/axon-cursor-setup.png" />
</Frame>

### API Provider Settings

* **API Provider**: OpenAI Compatible
* **Base URL**: `https://api.matterai.so/v1/web`
* **API Key**: `Your MatterAI API Key from above`
* **Model ID**: `axon-code`

### Authentication

* **OpenAI Compatible API Key**: Your Axon API key
* The key is stored locally and only used for API requests

### Model Configuration

* **Context Window Size**: 200,000 tokens
* **Model Name**: `axon-code`
* **Max Output Tokens**: 32,768
* **Input Price**: \$1/1M tokens
* **Output Price**: \$4/1M tokens
* **Temperature**: 0
