Monorepo that provides a one-script setup to start opencode — and optionally expose it over HTTPS via Tailscale — so you can connect to it from anywhere (e.g. a private iOS app).
| Package | Description |
|---|---|
@whatcode-ai/sdk |
Core SDK + whatcode CLI |
@whatcode-ai/example |
Minimal usage example |
npx @whatcode-ai/sdk
# or with Tailscale
npx @whatcode-ai/sdk --tailscalenpm install @whatcode-ai/sdkimport { createWhatcodeServer } from '@whatcode-ai/sdk';
await createWhatcodeServer({
tailscale: true, // optional — exposes opencode over HTTPS on your tailnet
});- opencode — starts the opencode server on
0.0.0.0:4096(skipped if already running). - Tailscale (optional) — runs
tailscale serve --bg 4096to proxy the server over HTTPS on your tailnet, then prints the URL to use in your app.
git clone https://github.com/Pnlvfx/whatcode-ai.git
cd whatcode-ai
yarn install
yarn buildMIT