musistudio/claude-code-router · error

Kilo CLI profiles only support CLI opening.

Error message

Kilo CLI profiles only support CLI opening.

What it means

Error "Kilo CLI profiles only support CLI opening." thrown in musistudio/claude-code-router.

Source

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

    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[]
): ProfileLaunchPlan {
  if (surface !== "cli") {
    throw new Error("Kilo CLI profiles only support CLI opening.");
  }
  return {
    args: extraArgs,
    command: path.join(configDir, "bin", kiloWrapperFilename(profile)),
    env: {
      CCR_PROFILE_SURFACE: "cli",
      KILO_CONFIG: resolveKiloProfileConfigFile(configDir, profile)
    },
    profile,
    surface
  };
}

function buildGrokLaunchPlan(
  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:163 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/d1c257a7a74f05f7. Report an issue: GitHub.