Tabbit
ResourcesBlogModels
Tabbit LogoTabbit

Tabbit — The AI Browser that Works for You

Topics

  • AI Browser Resources
  • Agentic Browser Resources
  • Browser Downloads and Install Guides
  • Browser Comparisons
  • AI Browser Alternatives
  • Browser Productivity Resources

Popular Guides

  • AI Browser
  • Agentic Browser Download
  • Best AI Browser 2026: Top 9 Tested & Ranked
  • AI Browser Download
  • Free AI Browser
  • Best AI Browser 2026
  • AI Browser Comparison 2026
  • AI Browser for Windows
  • AI Browser for Mac
  • Chrome Alternative 2026

Events

  • Tabbit Skill Competition
  • KPOP SBTI Fandom Personality Test
  • Tabbit Campus Creator Program
  • fifi's Picks: AI Skills for Research Papers
  • User Survey

About

  • Tabbit Blog
  • Press & Media
Prompt guide
MediaLongCat 2.0

Claude Code Integration with LongCat-2.0 (Official Documentation)

Original source

LongCat official API documentation site (longcat.chat)

AuthorMeituan LongCat team

Source date2026-06-30

Tabbit curation2026-08-19

Read original

One-sentence takeaway

By rewriting the environment variables in ~/.claude/settings.json, you can point all four Claude Code model slots (primary model / small fast model / Sonnet / Opus) to LongCat-2.0's Anthropic-compatible endpoint, allowing Claude Code to use LongCat directly for repository-level coding tasks.

Use cases

  • Suitable tasks: Use Claude Code as an Agent shell with LongCat-2.0 as the backend for code understanding, repository-level changes, and automated task execution; compare LongCat with the Claude family in real coding workflows

  • Unsuitable tasks: Scenarios that require Claude-specific functionality (such as particular toolchain behavior built into Claude Code) and do not accept behavioral differences

  • Applicable model version: LongCat-2.0 (Anthropic-format endpoint https://api.longcat.chat/anthropic)

  • Applicable clients, Agents, or APIs: Claude Code CLI (the official Anthropic client)

  • Recommended reasoning tier and parameters: The official example sets CLAUDE_CODE_MAX_OUTPUT_TOKENS to 131072 (128K); CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1 disables nonessential traffic

Ready-to-use content

Configuration file: ~/.claude/settings.json

{
  "env": {
    "ANTHROPIC_AUTH_TOKEN": "your_longcat_api_key",
    "ANTHROPIC_BASE_URL": "https://api.longcat.chat/anthropic",
    "ANTHROPIC_MODEL": "LongCat-2.0",
    "ANTHROPIC_SMALL_FAST_MODEL": "LongCat-2.0",
    "ANTHROPIC_DEFAULT_SONNET_MODEL": "LongCat-2.0",
    "ANTHROPIC_DEFAULT_OPUS_MODEL": "LongCat-2.0",
    "CLAUDE_CODE_MAX_OUTPUT_TOKENS": "131072",
    "CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC": 1
  },
  "permissions": {
    "allow": [],
    "deny": []
  }
}

Verification

claude
# Enter the test message: "Hello, please introduce yourself"
# Receiving a reply from the LongCat model means the configuration succeeded

Raw data and verification notes

  • The settings.json contents were transcribed verbatim from the official documentation (collected on 2026-08-18).

  • The official model card and OpenRouter page both list "Claude Code" as one of the Harnesses deeply adapted for LongCat-2.0; OpenRouter Apps data shows Claude Code as LongCat-2.0's second-largest traffic source (3.31B tokens, behind Hermes Agent's 7.77B), supporting that this configuration path is used at significant scale in real workflows.

  • Note: ANTHROPIC_AUTH_TOKEN must contain the LongCat API key, not an Anthropic key; ANTHROPIC_BASE_URL must point to LongCat's Anthropic-compatible endpoint.

Scope and limitations

  • This configuration replaces all of Claude Code's model slots with LongCat-2.0, so Claude and LongCat cannot be mixed within the same session; switch back by editing the configuration.

  • The Anthropic-compatible endpoint is implemented by a third party (Meituan), so compatibility for tool calls and other behavior is subject to the official documentation; OpenRouter testing found a tool-call error rate of approximately 0.90% (see review document 03).

  • The official documentation also provides equivalent configuration pages for Kilo Code, Codex, ZCode, Cline, Cherry Studio, CodeBuddy, WorkBuddy, CC Switch, and other tools (/platform/docs/<tool name>); use the same method when needed.

Curated by Tabbit

Prompt material is summarized from public sources and Tabbit editorial notes. Check the original licensing and intended use before copying it.

LongCat 2.0

Use in Tabbit

LongCat 2.0

Related prompts

MediaLongCat official API documentation site (longcat.chat)2026-07

LongCat-2.0 API Platform Quick Start (Official Quick Start + Chat Completions Reference + Pricing)

MediaHugging Face2026-06-30

LongCat-2.0 Chat Template and Tool-Calling Configuration (Official Hugging Face Model Card)

MediaLongCat official API documentation site (longcat.chat); X (@NousResearch official account as evidence for the free entry)2026-08-13

Hermes Agent Integration with LongCat-2.0 (Official Documentation + Nous Portal Free Entry)

MediaLongCat official API documentation site (longcat.chat)2026-06-30

OpenClaw Integration with LongCat-2.0 (Official Documentation)

LongCat 2.0

Related reviews

MediaHugging Face (meituan-longcat/LongCat-2.0)2026-06-30

LongCat-2.0 Official Model Card: Specifications and Official Benchmarks (Including Comparison Tables with Gemini/GPT-5.5/Claude Opus)

MediaLongCat official blog (longcat.chat)2026-06-30

LongCat-2.0 Official Technical Blog: Architecture, Training on Domestic Compute, and Inference Deployment (Release Notes)

MediaOpenRouter (third-party model routing platform)2026-07-20

OpenRouter Channel Data: LongCat-2.0 Pricing, Measured Performance, and Third-Party Benchmarks (Artificial Analysis)

Mediaaiprofitboardroom.com (blog, part of Julian Goldie's AI Profit Boardroom community)2026-05-29

AI Profit Boardroom field test: LongCat 2.0 game-building test and same-task comparison with GLM 5.2