Skip to content

Guides

Coding agents

Connection

FieldValue
Base URL (OpenAI)https://api.offmem.app/v1
Base URL (Anthropic)https://api.offmem.app
Main modeloffmem-glm-5.3-abliterated
Fast modeloffmem-glm-5.3-flash-abliterated
KeyCreate key

1. Save the key

The configurations below read the key from the OFFMEM_API_KEY environment variable. On Windows, setx only applies to new terminals.

echo 'export OFFMEM_API_KEY="om_..."' >> ~/.zshrc && source ~/.zshrc

Test the key before configuring the agent:

curl https://api.offmem.app/v1/chat/completions \
  -H "Authorization: Bearer $OFFMEM_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "offmem-glm-5.3-flash-abliterated", "messages": [{"role": "user", "content": "ok"}]}'

2. Set up the agent

Configurations marked as tested were run end to end against production (read a file, edit it and answer). The others follow the official documentation of each tool.

OpenCode

OpenAI formatTested on November 8, 2026Official documentation ↗

Paste the prompt into OpenCode and it edits its own configuration, or edit the files yourself:

  • ~/.config/opencode/opencode.json (Windows: %USERPROFILE%\.config\opencode\opencode.json)
Configure OpenCode to use offmem (an API compatible with OpenAI). The key is already in the OFFMEM_API_KEY environment variable; do not show the key in your reply.

Create or edit ~/.config/opencode/opencode.json (Windows: %USERPROFILE%\.config\opencode\opencode.json), merging this content without deleting what is already there:

{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
    "offmem": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "offmem",
      "options": {
        "baseURL": "https://api.offmem.app/v1",
        "apiKey": "{env:OFFMEM_API_KEY}"
      },
      "models": {
        "offmem-glm-5.3-flash-abliterated": {
          "name": "GLM 5.3 Flash"
        },
        "offmem-deepseek-v4.1-flash-abliterated": {
          "name": "DeepSeek V4.1 Flash"
        },
        "offmem-glm-5.3-abliterated": {
          "name": "GLM 5.3"
        },
        "offmem-kimi-k3.1-pro": {
          "name": "Kimi K3.1 Pro"
        },
        "offmem-minimax-m3.1-flash": {
          "name": "MiniMax M3.1 Flash"
        },
        "offmem-deepseek-v4.1-flash-fast": {
          "name": "DeepSeek V4.1 Flash Fast"
        }
      }
    }
  },
  "model": "offmem/offmem-glm-5.3-abliterated",
  "small_model": "offmem/offmem-glm-5.3-flash-abliterated"
}

At the end, tell me: Open OpenCode, type /models and pick "GLM 5.3" from the offmem provider.

Open OpenCode, type /models and pick "GLM 5.3" from the offmem provider.

Claude Code

Anthropic formatTested on November 8, 2026Official documentation ↗

Paste the prompt into Claude Code and it edits its own configuration, or edit the files yourself:

  • ~/.claude/settings.json (Windows: %USERPROFILE%\.claude\settings.json)
Configure Claude Code to use offmem (an API compatible with Anthropic). The key is already in the OFFMEM_API_KEY environment variable; do not show the key in your reply.

Create or edit ~/.claude/settings.json (Windows: %USERPROFILE%\.claude\settings.json), merging this content without deleting what is already there:

{
  "env": {
    "ANTHROPIC_BASE_URL": "https://api.offmem.app",
    "ANTHROPIC_AUTH_TOKEN": "COLE_SUA_CHAVE_AQUI",
    "ANTHROPIC_MODEL": "offmem-glm-5.3-abliterated",
    "ANTHROPIC_DEFAULT_OPUS_MODEL": "offmem-glm-5.3-abliterated",
    "ANTHROPIC_DEFAULT_SONNET_MODEL": "offmem-glm-5.3-abliterated",
    "ANTHROPIC_DEFAULT_HAIKU_MODEL": "offmem-glm-5.3-flash-abliterated",
    "CLAUDE_CODE_SUBAGENT_MODEL": "offmem-glm-5.3-abliterated",
    "CLAUDE_CODE_MAX_CONTEXT_TOKENS": "200000"
  }
}

Replace COLE_SUA_CHAVE_AQUI with the value of the OFFMEM_API_KEY environment variable (this file does not read variables).

At the end, tell me: Reopen Claude Code and run /status: "Anthropic base URL" should show the offmem address.

Replace COLE_SUA_CHAVE_AQUI with the value of the OFFMEM_API_KEY environment variable (this file does not read variables).

Reopen Claude Code and run /status: "Anthropic base URL" should show the offmem address.

OpenClaw

OpenAI formatOfficial documentation ↗

Paste the prompt into OpenClaw and it edits its own configuration, or edit the files yourself:

  • ~/.openclaw/openclaw.json
Configure OpenClaw to use offmem (an API compatible with OpenAI). The key is already in the OFFMEM_API_KEY environment variable; do not show the key in your reply.

Create or edit ~/.openclaw/openclaw.json, merging this content without deleting what is already there:

{
  agents: {
    defaults: {
      model: { primary: "offmem/offmem-glm-5.3-abliterated" },
    },
  },
  models: {
    mode: "merge",
    providers: {
      offmem: {
        baseUrl: "https://api.offmem.app/v1",
        apiKey: "${OFFMEM_API_KEY}",
        api: "openai-completions",
        models: [
          { id: "offmem-glm-5.3-flash-abliterated", name: "GLM 5.3 Flash" },
          { id: "offmem-deepseek-v4.1-flash-abliterated", name: "DeepSeek V4.1 Flash" },
          { id: "offmem-glm-5.3-abliterated", name: "GLM 5.3" },
          { id: "offmem-kimi-k3.1-pro", name: "Kimi K3.1 Pro" },
          { id: "offmem-minimax-m3.1-flash", name: "MiniMax M3.1 Flash" },
          { id: "offmem-deepseek-v4.1-flash-fast", name: "DeepSeek V4.1 Flash Fast" },
        ],
      },
    },
  },
}

At the end, tell me: Restart OpenClaw and send "ok" to test.

Restart OpenClaw and send "ok" to test.

Hermes Agent

OpenAI formatOfficial documentation ↗

Paste the prompt into Hermes Agent and it edits its own configuration, or edit the files yourself:

  • ~/.hermes/config.yaml
Configure Hermes Agent to use offmem (an API compatible with OpenAI). The key is already in the OFFMEM_API_KEY environment variable; do not show the key in your reply.

Create or edit ~/.hermes/config.yaml, merging this content without deleting what is already there:

model:
  default: offmem-glm-5.3-abliterated
  provider: custom
  base_url: https://api.offmem.app/v1
  key_env: OFFMEM_API_KEY

Back up config.yaml first. If Hermes cannot see the variable, put it in ~/.hermes/.env. If key_env is not accepted, tell me instead of saving the key in the config.

At the end, tell me: Restart the session and send "ok" to test.

Back up config.yaml first. If Hermes cannot see the variable, put it in ~/.hermes/.env. If key_env is not accepted, tell me instead of saving the key in the config.

Restart the session and send "ok" to test.

Pi

OpenAI formatOfficial documentation ↗

Paste the prompt into Pi and it edits its own configuration, or edit the files yourself:

  • ~/.pi/agent/models.json
  • ~/.pi/agent/settings.json
Configure Pi to use offmem (an API compatible with OpenAI). The key is already in the OFFMEM_API_KEY environment variable; do not show the key in your reply.

Create or edit ~/.pi/agent/models.json, merging this content without deleting what is already there:

{
  "$schema": "https://pi.dev/schemas/models.schema.json",
  "providers": {
    "offmem": {
      "name": "offmem",
      "baseUrl": "https://api.offmem.app/v1",
      "api": "openai-completions",
      "apiKey": "$OFFMEM_API_KEY",
      "models": [
        {
          "id": "offmem-glm-5.3-flash-abliterated",
          "name": "GLM 5.3 Flash"
        },
        {
          "id": "offmem-deepseek-v4.1-flash-abliterated",
          "name": "DeepSeek V4.1 Flash"
        },
        {
          "id": "offmem-glm-5.3-abliterated",
          "name": "GLM 5.3"
        },
        {
          "id": "offmem-kimi-k3.1-pro",
          "name": "Kimi K3.1 Pro"
        },
        {
          "id": "offmem-minimax-m3.1-flash",
          "name": "MiniMax M3.1 Flash"
        },
        {
          "id": "offmem-deepseek-v4.1-flash-fast",
          "name": "DeepSeek V4.1 Flash Fast"
        }
      ]
    }
  }
}

Create or edit ~/.pi/agent/settings.json, merging this content without deleting what is already there:

{
  "defaultProvider": "offmem",
  "defaultModel": "offmem-glm-5.3-abliterated"
}

At the end, tell me: Run /reload, pick the model with /model and send "ok" to test.

Run /reload, pick the model with /model and send "ok" to test.

DeepSeek Harness

OpenAI formatOfficial documentation ↗

Paste the prompt into DeepSeek Harness and it edits its own configuration, or edit the files yourself:

  • ~/.dsh/profiles/<profile>/cordis.patch.yml
Configure DeepSeek Harness to use offmem (an API compatible with OpenAI). The key is already in the OFFMEM_API_KEY environment variable; do not show the key in your reply.

Create or edit ~/.dsh/profiles/<profile>/cordis.patch.yml, merging this content without deleting what is already there:

- name: '@deepseek-ai/dsh-llm-pi-ai'
  config:
    providers:
      offmem:
        displayName: offmem
        apiKeyEnv: OFFMEM_API_KEY
        api: openai-completions
        baseURL: https://api.offmem.app/v1
        models:
          - id: offmem-glm-5.3-flash-abliterated
            name: GLM 5.3 Flash
          - id: offmem-deepseek-v4.1-flash-abliterated
            name: DeepSeek V4.1 Flash
          - id: offmem-glm-5.3-abliterated
            name: GLM 5.3
          - id: offmem-kimi-k3.1-pro
            name: Kimi K3.1 Pro
          - id: offmem-minimax-m3.1-flash
            name: MiniMax M3.1 Flash
          - id: offmem-deepseek-v4.1-flash-fast
            name: DeepSeek V4.1 Flash Fast
- name: '@deepseek-ai/dsh-agent-default-model'
  config:
    provider: offmem
    model: offmem-glm-5.3-abliterated

At the end, tell me: Validate with "dsh --profile <profile> --dump-config", restart dsh and send "ok".

Validate with "dsh --profile <profile> --dump-config", restart dsh and send "ok".

OpenBot

OpenAI formatOfficial documentation ↗

Paste the prompt into OpenBot and it edits its own configuration, or edit the files yourself:

  • .env (OpenBot root)
  • model.yaml (tenant package)
Configure OpenBot to use offmem (an API compatible with OpenAI). The key is already in the OFFMEM_API_KEY environment variable; do not show the key in your reply.

Create or edit .env (OpenBot root), merging this content without deleting what is already there:

OPENAI_BASE_URL=https://api.offmem.app/v1
OPENAI_API_KEY=COLE_SUA_CHAVE_AQUI
COPILOTKIT_OPENAI_API=chat
BOT_MODEL=offmem-glm-5.3-abliterated

Create or edit model.yaml (tenant package), merging this content without deleting what is already there:

provider: openai
credential_secret_ref: openai-api-key
default_model: offmem-glm-5.3-abliterated

Replace COLE_SUA_CHAVE_AQUI with the value of the OFFMEM_API_KEY variable and do not delete the CopilotKit key.

At the end, tell me: Restart with scripts/start.sh and send "ok" to a Bot.

Replace COLE_SUA_CHAVE_AQUI with the value of the OFFMEM_API_KEY variable and do not delete the CopilotKit key.

Restart with scripts/start.sh and send "ok" to a Bot.

Cline, Roo Code, Cursor

OpenAI format

  • "OpenAI Compatible" provider
"OpenAI Compatible" provider
Base URL: https://api.offmem.app/v1
API key:  om_...
Model ID: offmem-glm-5.3-abliterated