Skip to content

Agentsflare Claude Code Configuration Guide

Claude code Claudecode is a very popular coding agent.

Installing and Configuring Claudecode

Installing Claudecode

macOS, Linux, WSL:

curl -fsSL https://claude.ai/install.sh | bash

Windows PowerShell:

irm https://claude.ai/install.ps1 | iex

Windows CMD:

curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd

For other installation methods, refer to the official documentation Claudecode Installation Documentation

Configuring Claudecode

After logging in, modify the ~/.claude/setting.json file and add the following content:

json
{
  "env": {
    "ANTHROPIC_API_KEY": "Your api key",
    "ANTHROPIC_BASE_URL": "https://api.agentsflare.com/anthropic"
  },
  "model": "claude-opus-4-6"
}

Restart Claudecode for the configuration to take effect

Common Issues

Claude Code new version calling claude-opus-4-8 error

Error message:

API Error: 400 bedrock error: The model that you are using requires the last turn in the conversation to be a user message. Add a user message to the conversation and try again.

Solution: Add "CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS": "1" to the env section in ~/.claude/setting.json:

json
{
  "env": {
    "ANTHROPIC_API_KEY": "Your api key",
    "ANTHROPIC_BASE_URL": "https://api.agentsflare.com/anthropic",
    "CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS": "1"
  },
  "model": "claude-opus-4-8"
}

Claude Code reporting "invalid beta flag" error

Error message:

API Error: 400 {"type":"error","request_id":"req_e7laamfsahwbvrvmhto2s5pxj7pce7ydr6dxthn6jmwuscfjc6iq","error":{"type":"invalid_request_error","message":"invalid beta flag"}}

Solution: Add "CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS": "1" to the env section in ~/.claude/setting.json:

json
{
  "env": {
    "ANTHROPIC_API_KEY": "Your api key",
    "ANTHROPIC_BASE_URL": "https://api.agentsflare.com/anthropic",
    "CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS": "1"
  },
  "model": "claude-opus-4-6"
}

Or set the environment variable directly:

bash
export CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS=1

If you want to use more models, such as claude-opus-4-5-20251101, you can specify the model through startup parameters:

bash
claude --model claude-opus-4-5-20251101

Skip Login Configuration

To bypass the login flow, open (or create) the ~/.claude.json file and add the following content:

json
{
  "hasCompletedOnboarding": true
}

Save the file and restart Claudecode — it will skip the /login step.

This documentation is licensed under CC BY-SA 4.0.