musistudio/claude-code-router · error · Error
Pi profiles only support CLI opening.
Error message
Pi profiles only support CLI opening.
What it means
Error "Pi profiles only support CLI opening." thrown in musistudio/claude-code-router.
Source
Thrown at packages/core/src/profiles/launch-core.ts:224
return {
args: extraArgs,
command: path.join(configDir, "bin", kimiWrapperFilename(profile)),
env: {
CCR_PROFILE_SURFACE: "cli"
},
profile,
surface
};
}
function buildPiLaunchPlan(
configDir: string,
profile: ProfileConfig,
surface: ProfileOpenSurface,
extraArgs: string[]
): ProfileLaunchPlan {
if (surface !== "cli") {
throw new Error("Pi profiles only support CLI opening.");
}
return {
args: extraArgs,
command: path.join(configDir, "bin", piWrapperFilename(profile)),
env: {
CCR_PROFILE_SURFACE: "cli",
PI_CODING_AGENT_DIR: resolvePiAgentDir(configDir, profile),
PI_CODING_AGENT_SESSION_DIR: resolvePiSessionDir(configDir, profile)
},
profile,
surface
};
}
export function profileLaunchSpawnCommand(plan: Pick<ProfileLaunchPlan, "args" | "command">): ProfileLaunchSpawnCommand {
if (!isWindowsCommandScript(plan.command)) {
return {
args: plan.args,View on GitHub (pinned to 99f24806c6)
When it happens
Trigger: Thrown at packages/core/src/profiles/launch-core.ts:224 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/2f401477d80b44ac.
Report an issue: GitHub.