> ## 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.

# Axon CLI Agent

> Axon CLI Agent is a command line coding agent powered by Axon Code model

## Get Your API Key

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

## Installation

<Note>
  Axon Code CLI is a fork of [OpenCode CLI](https://github.com/sst/opencode).
  You can find Axon Code CLI code here:
  [https://github.com/MatterAIOrg/axon-code](https://github.com/MatterAIOrg/axon-code)
</Note>

To install Axon Code CLI, you can use one of the following methods:

### Quick Install

```bash theme={null}
curl -fsSL https://api.matterai.so/install | bash
```

2. Once you have the API Key, set it in your environment:

```bash theme={null}
export MATTERAI_API_KEY=YOUR_KEY_HERE
```

<Note>Keep your API key secure and never commit it to version control.</Note>

3. Type `axoncode` in your terminal to get started.

<Frame>
  <img src="https://mintcdn.com/gravitycloud-9ebb5c50/fCPFn5BY2h2COh7c/images/cli/axon-code-cli-1.png?fit=max&auto=format&n=fCPFn5BY2h2COh7c&q=85&s=7bf54291f46247b0ddeed57ae91d2cb9" alt="Axon Code CLI" width="2422" height="732" data-path="images/cli/axon-code-cli-1.png" />
</Frame>

4. Start Coding with Axon Code

<Frame>
  <img src="https://mintcdn.com/gravitycloud-9ebb5c50/fCPFn5BY2h2COh7c/images/cli/axon-code-cli-2.png?fit=max&auto=format&n=fCPFn5BY2h2COh7c&q=85&s=fd3f4032192090f0b694ec2e7fe94595" alt="Axon Code CLI" width="2430" height="678" data-path="images/cli/axon-code-cli-2.png" />
</Frame>

5. You can also start with a prompt with `-p` flag.

```bash theme={null}
axoncode -p "Create a PR"
```
