Skip to content

在 ~/.crab/settings.json 以下配置,似乎无效 #6

Closed

Description

@dannisliang

在 ~/.crab/settings.json 以下配置,似乎无效
{
"env": {
"ANTHROPIC_AUTH_TOKEN": "lmstudio",
"ANTHROPIC_BASE_URL": "http://192.168.18.23:1234"
},
"model": "claude-opus-4-6"
}
运行后报此错误
❯ ?

Error: SSE stream error: API error: status=401, message={"type":"error","error":{"type":"authentication_error","message"

Activity

  1. mountainsea-lab commented on Apr 16, 2026

    @mountainsea-lab

    {
    "apiBaseUrl": "大模型api地址",
    "apiKey": "apikey",
    "apiProvider": "openai",
    "model": "大模型名称"
    }
    上述配置通过命令进行配置:
    crab config set apiBaseUrl "大模型api地址"
    crab config set apiKey "apiKey"
    其他的以此类推
    crab config list 查看配置

  2. mountainsea-lab commented on Apr 16, 2026

    @mountainsea-lab

    apiProvider 这个参数根据你自己使用的修改

  3. added a commit that references this issue on Apr 27, 2026
    4bc3ee4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions