musistudio/claude-code-router · error

Grok CLI profiles only support CLI opening.

Error message

Grok CLI profiles only support CLI opening.

What it means

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

Source

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

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

function buildKimiLaunchPlan(
  configDir: string,
  profile: ProfileConfig,
  surface: ProfileOpenSurface,
  extraArgs: string[]
): ProfileLaunchPlan {

View on GitHub (pinned to 99f24806c6)

When it happens

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