musistudio/claude-code-router · error · Error
OpenCode App is already running outside CCR (PID ${unmanaged
Error message
OpenCode App is already running outside CCR (PID ${unmanagedPid}). Close it before opening an OpenCode App profile. What it means
Error "OpenCode App is already running outside CCR (PID ${unmanagedPid}). Close it before opening an OpenCode App profile." thrown in musistudio/claude-code-router.
Source
Thrown at packages/core/src/profiles/launch-service.ts:220
"Close it before reopening this profile."
);
}
stopOpenCodeAppBotWorker(profile.id);
}
const otherProfile = runningProfileAppForAgent("opencode", "app", profile.id);
if (otherProfile) {
const stopped = await stopRunningProfileApp(profileRuntimeKey(otherProfile.profileId, "app"), otherProfile);
if (!stopped && isProfileAppRunning(otherProfile)) {
throw new Error(
`OpenCode App is already running with ${otherProfile.profileName || otherProfile.profileId}. ` +
"Close it before switching OpenCode App profiles."
);
}
stopOpenCodeAppBotWorker(otherProfile.profileId);
}
const unmanagedPid = findRunningOpenCodeAppPid(profile.appPath);
if (unmanagedPid) {
throw new Error(
`OpenCode App is already running outside CCR (PID ${unmanagedPid}). ` +
"Close it before opening an OpenCode App profile."
);
}
const launch = {
...launchOpenCodeAppProfile(
CONFIGDIR,
profile,
configResult.file,
configResult.inlineConfig,
botEnv
),
launchSignature
};
const entry = registerProfileApp(profile, "app", launch);
const started = await waitForStableProfileAppStart(entry, 12000, 1000);
if (!started) {
cleanupProfileAppEntry(profileRuntimeKey(profile.id, "app"), entry);View on GitHub (pinned to 99f24806c6)
When it happens
Trigger: Thrown at packages/core/src/profiles/launch-service.ts:220 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/3c78856ab799e661.
Report an issue: GitHub.