Skip to main content
Nasiko treats OpenCode as a coding harness. Discovery and session reporting use an OpenCode plugin. Model routing installs a second plugin that registers Nasiko as a provider. No wrapper, no SDK in your code.

Discover and report

Install writes plugins/nasiko-session-report.js into the OpenCode config directory.
Restart OpenCode after install so it loads the plugin.
The plugin waits at most 8 seconds for the reporting hook and swallows errors, so OpenCode is never blocked if Nasiko is down. See Session reporting.

Route models

connect opencode installs plugins/nasiko-llm-router.js, registers a nasiko provider, and makes nasiko/router the default model for new OpenCode sessions. The plugin calls nasiko __coding-agent-token opencode for a JWT. If the helper times out or returns invalid JSON, OpenCode gets an error — the plugin never forges a token. Connection state is stored in ~/.nasiko/integrations/opencode-router.json.
OpenCode’s config is per-user and global. Connecting it affects every OpenCode process on the machine.
OpenCode fixes a session’s model at creation time in its own database. Resuming an existing session will not route it. Start a new session, or pick Nasiko Router explicitly.

Disconnect and uninstall

Restart OpenCode after either command so plugins reload.

Identity in Nasiko

Registration creates a coding-agent identity named <username>-opencode, labelled OpenCode (<your email>) in the dashboard.

Troubleshooting

More: Troubleshooting and Route models.