feat: add opper launch claude-desktop#5
Merged
Merged
Conversation
Captures the brainstormed design for `opper launch claude-desktop`: adapter that writes Claude Desktop's third-party-inference profile to point at the Opper compat gateway, plus a new `opper agents uninstall <name>` non-interactive uninstall surface to mirror `opper launch <name>`.
Step-by-step TDD plan for the spec at docs/superpowers/specs/2026-05-05-claude-desktop-launch.md.
The README's agent table and launch examples were missing two adapters that already shipped (openclaw) and one that ships with this branch (claude-desktop). Also adds the new `opper agents uninstall <name>` non-interactive uninstall surface.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 4985a96828
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Two issues raised by the codex PR review: P1 — `writeJson` wrote Claude Desktop's profile files with default mode (world-readable post-umask). One of those files stores `inferenceGatewayApiKey`, which on multi-user machines could leak the gateway token to other local users. Set `mode: 0o600` on every write — matches the precedent in `openclaw.ts`. P2 — `openClaude()` ignored `run()`'s exit code, so `spawn()` returned 0 even if `open -a Claude` / `Start-Process` failed. Now we check the result and throw `OpperError` with the subprocess stderr so the user gets an actionable message.
Member
Author
|
Codex Review: Didn't find any major issues. Another round soon, please! ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
opper launch claude-desktop— routes Claude Desktop's built-in chat (Cowork) and Code surfaces through Opper by writing the documented third-party-inference profile (deploymentMode: \"3p\") at~/Library/Application Support/Claude-3p/(macOS) or%LOCALAPPDATA%\\Claude-3p\\(Windows). Mirrorsollama launch claude-desktop. macOS quits & reopens the app viaosascript/open -aso the change takes effect immediately; Windows usesGet-Process/CloseMainWindow/Start-Process. Linux returns "not installed" (Anthropic doesn't ship a Linux build).Picker default is pinned to
anthropic/claude-opus-4-7viainferenceModels(Claude Desktop's documented field — first entry is the default). The user's--modeloverride flows through as the picker default at spawn time, mirroring howANTHROPIC_MODELworks for Claude Code.Also adds
opper agents uninstall <name>— non-interactive companion toopper launch <name>that callsadapter.unconfigure(). Works for every adapter, not just claude-desktop.Behaviour
opper launch claude-desktopupserts our_meta.jsonentry by UUID — no duplicates.mcpServers,preferences, other 3p_meta.jsonentries,enterpriseConfig, etc. are untouched.opper agents uninstall claude-desktopflipsdeploymentModeback to\"1p\", removes the Opper entry from_meta.json, blanks gateway fields in our profile JSON. Two inert files remain inClaude-3p/configLibrary/(functionally identical to a vanilla install).Test plan
npm test); typecheck clean0312976Files