# Connect Qwen Code to Void API

Register Void API models through Qwen Code’s OpenAI protocol.

Examples use MODEL_ID as a placeholder, not an available model. Replace it with an ID from the current catalog. Choose a model that supports the endpoint and features used by this tool; vision and tool calling are not universal.

[Current model catalog](https://void-api.tech/models)

## API key

Store your key in an environment variable.

### Environment variables

```
export VOID_API_KEY='void_your_key'
```

## Configuration

Add the OpenAI-compatible models to ~/.qwen/settings.json.

### ~/.qwen/settings.json

```
{
  "modelProviders": {
    "openai": [
      {
        "id": "MODEL_ID",
        "name": "MODEL_ID",
        "envKey": "VOID_API_KEY",
        "baseUrl": "https://void-api.tech/v1",
        "capabilities": {
          "vision": true,
          "agent": true
        }
      }
    ]
  }
}
```

## Run

Open the model picker and select a Void API model.

### shell

```
qwen
/model
```

[Upstream documentation](https://qwenlm.github.io/qwen-code-docs/en/users/configuration/model-providers/)
