Files
Paul O'Reilly 2c1ec7d52c fix: update MiniMax harness base URL to api.minimaxi.chat
MiniMax moved their Anthropic-compatible API from api.minimax.io to
api.minimaxi.chat. Update ANTHROPIC_BASE_URL in the minimax/v1 context
harness and corresponding comments in init.sh and the TODO note.

Model routing is unaffected: the API defaults unrecognised model names
(e.g. "minimax" from the registry slug) to MiniMax-M3 already.

Claude-Session: https://claude.ai/code/session_01XtWRazqRbMnMRa4iV3zbVx
2026-07-17 22:55:47 +12:00

32 lines
1.1 KiB
YAML

kind: context
name: minimax
version: 1
description: "MiniMax coding plan — Anthropic-compatible proxy"
requires: []
provides: [claude-code]
# Auth is wired by init.sh via Claude Code's apiKeyHelper (settings.json).
# No credential env vars: the secret stays in the mounted file and is read
# only by the helper command at request time.
env:
ANTHROPIC_BASE_URL: "https://api.minimaxi.chat/anthropic"
CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS: "1"
CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC: "1"
DISABLE_PROMPT_CACHING: "1"
secrets_required:
- name: minimax
account_ref: "minimax"
mount_path: /run/agent/secrets/minimax
# 0400 (root-only) — defense in depth. The agent user CANNOT read this
# mount. init.sh runs as root and `install`s a per-secret copy into the
# agent's home with mode 0600 owned by agent; only that copy is exposed
# to the runtime. Matches the gitea-ssh pattern. If the ESO Secret
# later grows additional keys, they remain inaccessible by default.
mode: "0400"
scripts:
init: ./init.sh
# TODO: Add network_hosts for api.minimaxi.chat when context harnesses support it