@deepadapt/opencode
v0.1.1
Published
OpenCode through DeepAdapt Duplex: Duplex gates, binds and learns every turn, with zero-token local cached answers.
Maintainers
Readme
@deepadapt/opencode
OpenCode through DeepAdapt Duplex. OpenCode stays your UI; every request goes through Duplex, which opens the turn, checks each tool call, binds the answer before it is shown, and learns from it. Learned answers are served locally with zero model calls and zero tokens.
Install
npm install -g @deepadapt/opencodeduplex-opencodeOpenCode is installed with the package. On the first run, opencode.json and .opencode/ are
added to the project, and the Duplex URL and token are asked for (if you already use
duplex-claude, those are reused automatically):
| Question | Demo value (Enter) |
|---|---|
| Duplex URL | http://127.0.0.1:8080 (a local Duplex) |
| Duplex token | approved in the browser: a link and a code are shown; approve the code in the Duplex console and the token arrives by itself (--token to paste one; a local Duplex in open mode accepts demo) |
Quick demo: duplex-opencode login --demo skips the questions.
Commands
| Command | What it does |
|---|---|
| duplex-opencode | Starts OpenCode through Duplex (wires the project automatically) |
| duplex-opencode run "…" | Passes OpenCode arguments through unchanged |
| duplex-opencode login | Enters the URL and token again (--demo, --url, --token, --from-env) |
| duplex-opencode status | URL, masked keys, Duplex reachability, route |
| duplex-opencode logout | Deletes the stored keys |
Keys are kept in the operating system's protected store: DPAPI on Windows, Keychain on macOS, Secret Service on Linux, or else a file only you can read.
Requirements: Node 18+ and a reachable Duplex (locally with Docker; DeepAdapt cloud coming soon).
