Package Exports
- @whatcode-ai/whatcode
- @whatcode-ai/whatcode/logger
Readme
@whatcode-ai/whatcode
CLI to start opencode and optionally expose it over HTTPS via Tailscale.
Full documentation at whatcode.app.
Usage
# start opencode
npx @whatcode-ai/whatcode
# start opencode + expose via Tailscale
npx @whatcode-ai/whatcode --tailscaleOptions
| Flag | Alias | Default | Description |
|---|---|---|---|
--tailscale |
-t |
false |
Expose opencode over HTTPS on your Tailscale tailnet |
--hostname |
-H |
0.0.0.0 |
Hostname to bind the opencode server to |
--port |
-p |
8192 |
Port for the Whatcode server |
--opencode-port |
4096 |
Port for the opencode server | |
--timeout |
Timeout (ms) for the opencode server to start | ||
--help |
Show help |
Programmatic usage
Use @whatcode-ai/sdk instead.
License
MIT