musistudio/claude-code-router · error · Error

Claude App opening is available from the CCR desktop app.

Error message

Claude App opening is available from the CCR desktop app.

What it means

Error "Claude App opening is available from the CCR desktop app." thrown in musistudio/claude-code-router.

Source

Thrown at packages/core/src/profiles/launch-core.ts:318

  return {
    args: surface === "app" && extraArgs.length === 0 ? ["app"] : extraArgs,
    command: launcher,
    env: {
      CCR_PROFILE_SURFACE: surface
    },
    profile,
    surface
  };
}

function buildClaudeCodeLaunchPlan(
  configDir: string,
  profile: ProfileConfig,
  surface: ProfileOpenSurface,
  extraArgs: string[]
): ProfileLaunchPlan {
  if (surface === "app") {
    throw new Error("Claude App opening is available from the CCR desktop app.");
  }
  const settingsFile = resolveClaudeCodeSettingsFile(configDir, profile);
  const launcher = path.join(configDir, "bin", claudeCodeWrapperFilename(profile));
  return {
    args: extraArgs,
    command: launcher,
    env: {
      CLAUDE_CONFIG_DIR: path.dirname(settingsFile),
      CCR_PROFILE_SURFACE: surface,
      ...claudeCodeProfileModelEnv(profile),
      ...claudeCodeUtcTimezoneEnvOverride()
    },
    profile,
    surface
  };
}

function isCodexCompatibleAgent(agent: ProfileConfig["agent"]): boolean {

View on GitHub (pinned to 99f24806c6)

When it happens

Trigger: Thrown at packages/core/src/profiles/launch-core.ts:318 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of musistudio/claude-code-router@99f24806c6 (2026-08-27). Data as JSON: /api/errors/e9e1c0c1c10d68f9. Report an issue: GitHub.