Skip to main content
The Nia OpenCode plugin integrates Nia’s knowledge tools directly into OpenCode, providing automatic research triggers, context saving for cross-agent handoffs, and full MCP tool access.
Automatic Detection: The plugin detects when you need docs or research and prompts the agent to use Nia tools automatically.

Demo


Features

Research Triggers

Automatically detects when you need documentation or research and prompts the agent to use Nia.

Save for Later

Detects when you want to save context for cross-agent handoffs between sessions.

AGENTS.md Setup

Automatically adds Nia workflow instructions to your project’s agent configuration.

MCP Integration

Connects to Nia’s MCP server for full tool access including search, grep, and explore.

Installation

Install the plugin using bunx:
The installer will prompt for your API key and configure everything automatically.

Non-Interactive Installation

For automated setups or CI environments:
Get your API key from app.trynia.ai.

Keyword Triggers

The plugin listens for specific keywords in your conversations to automatically trigger Nia tools.

Research Triggers

Use these phrases to trigger documentation and code research:

Save Triggers

Use these phrases to save context for later or hand off to other agents:

Available Tools

Once installed, the following Nia tools are available in OpenCode:

GitHub

View source code and contribute

npm

Package on npm registry

Need Help? Join our Discord community or reach out through app.trynia.ai for support.