musistudio/claude-code-router · error

OpenCode App profiles must be opened through CCR Desktop.

Error message

OpenCode App profiles must be opened through CCR Desktop.

What it means

Error "OpenCode App profiles must be opened through CCR Desktop." thrown in musistudio/claude-code-router.

Source

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

    return buildOpenCodeLaunchPlan(configDir, profile, resolvedSurface, extraArgs);
  }
  if (profile.agent === "kilo") {
    return buildKiloLaunchPlan(configDir, profile, resolvedSurface, extraArgs);
  }
  if (isCodexCompatibleAgent(profile.agent)) {
    return buildCodexLaunchPlan(configDir, profile, resolvedSurface, extraArgs);
  }
  return buildClaudeCodeLaunchPlan(configDir, profile, resolvedSurface, extraArgs);
}

function buildOpenCodeLaunchPlan(
  configDir: string,
  profile: ProfileConfig,
  surface: ProfileOpenSurface,
  extraArgs: string[]
): ProfileLaunchPlan {
  if (surface !== "cli") {
    throw new Error("OpenCode App profiles must be opened through CCR Desktop.");
  }
  return {
    args: extraArgs,
    command: path.join(configDir, "bin", openCodeWrapperFilename(profile)),
    env: {
      CCR_PROFILE_SURFACE: "cli",
      OPENCODE_CONFIG: resolveOpenCodeProfileConfigFile(configDir, profile)
    },
    profile,
    surface
  };
}

function buildKiloLaunchPlan(
  configDir: string,
  profile: ProfileConfig,
  surface: ProfileOpenSurface,
  extraArgs: string[]

View on GitHub (pinned to 99f24806c6)

When it happens

Trigger: Thrown at packages/core/src/profiles/launch-core.ts:142 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/746b2e2be2513914. Report an issue: GitHub.