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

# Other tools

> Connect editors and chat apps through Private AI Proxy or an OpenAI-compatible provider.

Tools that accept an OpenAI-compatible base URL can connect to RedPill. Choose a current chat
model from the [catalog](https://docs.redpill.ai/api-reference/models.md), and check its declared tool capabilities before
using it with an agent.

## With Private AI Proxy

Start [Private AI Proxy](https://docs.redpill.ai/get-started/private-ai-proxy.md), enable Protected, and use its
[Local API](https://docs.redpill.ai/get-started/private-ai-proxy.md#local-api) for tools without a built-in connector. Set the
tool's base URL to `http://127.0.0.1:4180/v1` and use the Local API's `sk-pap-` client key.
The Proxy verifies the gateway before forwarding; the tool does not receive your RedPill key.

## Without the Proxy

Create a key in the [dashboard](https://www.redpill.ai/dashboard). For shell examples, load it into
`REDPILL_AI_API_KEY` from your secret store or environment.

| Setting | Value |
| - | - |
| Provider type | OpenAI compatible |
| Base URL | `https://api.redpill.ai/v1` |
| API key | Your RedPill API key |
| Model | `z-ai/glm-5.3`, or a current chat model from `/v1/models` |

These configurations do not add local ACI verification. To require attested serving for every
request, use `https://tee.redpill.ai/v1`. See
[TEE-only endpoint](https://docs.redpill.ai/guides/tee-endpoint.md).

### Continue

Add a model to your local `~/.continue/config.yaml` using Continue's
[OpenAI-compatible configuration](https://docs.continue.dev/customize/model-providers/top-level/openai).
Keep other models already in the file:

```yaml theme={null}
name: RedPill
version: 0.0.1
schema: v1
models:
  - name: RedPill GLM 5.3
    provider: openai
    model: z-ai/glm-5.3
    apiBase: https://api.redpill.ai/v1
    apiKey: YOUR_REDPILL_API_KEY
```

### Zed

Add this provider under `language_models` in your settings file using Zed's
[OpenAI-compatible configuration](https://zed.dev/docs/ai/use-api-access#openai-compatible-endpoints).
Enter the key through **Settings → AI → LLM Providers**:

```json theme={null}
{
  "language_models": {
    "openai_compatible": {
      "redpill": {
        "api_url": "https://api.redpill.ai/v1",
        "available_models": [
          {
            "name": "z-ai/glm-5.3",
            "max_tokens": 1048576
          }
        ]
      }
    }
  }
}
```

Use the selected model's `context_length` from the catalog when configuring another model.

### GitHub Copilot in VS Code

Run **Chat: Manage Language Models**, choose **Add Models → Custom Endpoint**, name the group
`RedPill`, enter your key, and select **Chat Completions**. In `chatLanguageModels.json`, keep the
API-key input reference VS Code created and configure the model as below. See the
[Custom Endpoint documentation](https://code.visualstudio.com/docs/agent-customization/language-models#_add-a-custom-endpoint-model).

```json theme={null}
[
  {
    "name": "RedPill",
    "vendor": "customendpoint",
    "apiKey": "${input:redpillApiKey}",
    "models": [
      {
        "id": "z-ai/glm-5.3",
        "name": "RedPill GLM 5.3",
        "url": "https://api.redpill.ai/v1/chat/completions",
        "toolCalling": true,
        "maxInputTokens": 983040,
        "maxOutputTokens": 65536
      }
    ]
  }
]
```

This example reserves 65,536 output tokens within the catalog's 1,048,576-token context window.
Select the model in chat. Your organization's BYOK policy must allow custom models.

### Aider

Use Aider's [OpenAI-compatible endpoint](https://aider.chat/docs/llms/openai-compat.html) support.
The extra `openai/` prefix selects Aider's API format:

```bash theme={null}
export OPENAI_API_BASE="https://api.redpill.ai/v1"
export OPENAI_API_KEY="$REDPILL_AI_API_KEY"
aider --model openai/z-ai/glm-5.3
```

### Goose

Run `goose configure`, choose **Custom Providers → Add A Custom Provider**, and select the
OpenAI-compatible API type. Use these prompt values:

| Prompt | Value |
| - | - |
| Provider name | `RedPill` |
| API URL | `https://api.redpill.ai/v1/chat/completions` |
| Credential | **Static API key**: paste your RedPill API key |
| Available models | `z-ai/glm-5.3` |
| Streaming support | Yes |
| API base path | Leave empty |

After configuring the provider, set this model’s `context_limit` to `1048576` in its provider JSON
under `~/.config/goose/custom_providers/` (`%APPDATA%\Block\goose\config\custom_providers\` on
Windows). Select it for your session. See Goose's
[custom provider configuration](https://goose-docs.ai/docs/getting-started/providers/#configure-custom-provider).

### AnythingLLM

In **Settings → AI Providers → LLM**, select **Generic OpenAI**. Enter
`https://api.redpill.ai/v1` as the base URL, your RedPill key, and `z-ai/glm-5.3` as the selected
model, then save. Set the context window to the model's catalog `context_length`, `1048576` for
this example. See [Generic OpenAI settings](https://docs.anythingllm.com/setup/llm-configuration/cloud/openai-generic).

### Jan

In [Jan Desktop](https://docs.jan.ai/desktop/remote-models/custom-endpoint), open
**Settings → Model Providers → Add Provider**, choose **OpenAI-compatible**, and enter name
`RedPill`, base URL `https://api.redpill.ai/v1`, and your key. Create the provider and select
`z-ai/glm-5.3`. Enable **Tools** in the model's capabilities when using tool calls.

In [Jan Agent](https://docs.jan.ai/agent/providers), use **/settings → providers** to add the same
provider, base URL, key, and model, then start with:

```bash theme={null}
jan --provider redpill --model z-ai/glm-5.3
```

## Check the connection

Send a short prompt and confirm the selected provider and model. Refresh `/v1/models` if a model
is missing. Some tools hide response headers; use a [direct API client](https://docs.redpill.ai/get-started/quickstart.md)
or Private AI Proxy when you need to inspect and verify receipts.

## Troubleshooting

| Symptom | Check |
| - | - |
| `401` | Re-enter your RedPill key, or the Local API client key when using the Proxy. |
| `404` | Refresh the catalog for your base URL and confirm the exact model ID. If you require attested serving, check the catalog on the TEE-only endpoint. |
| Tool calls fail | Choose a model that declares `tools` in `supported_features`. |
| Connection succeeds but no local verification | Connect through Private AI Proxy for a verified gateway channel. |

## Related

> [card] [Cherry Studio](https://docs.redpill.ai/guides/integrations/cherry-studio.md)

> [card] [Private AI Proxy](https://docs.redpill.ai/get-started/private-ai-proxy.md)

> [card] [Migrate an integration](https://docs.redpill.ai/guides/migrate.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.