> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cloudshipai.com/llms.txt
> Use this file to discover all available pages before exploring further.

# OpenCode Plugin

> Use Station with OpenCode via the official skill plugin

Station provides an [OpenCode skill plugin](https://www.npmjs.com/package/@cloudshipai/station-skill) that teaches OpenCode how to use the Station CLI effectively.

## What's Included

| Component          | Description                                            |
| ------------------ | ------------------------------------------------------ |
| **station**        | Core CLI reference - commands, agent format, workflows |
| **station-config** | Configuration deep-dive - all config options explained |

<Note>
  Unlike Claude Code, OpenCode doesn't have an MCP integration or slash commands. The plugin provides **skills only** - comprehensive guides that teach OpenCode how to work with Station.
</Note>

## Quick Start

### Install the Plugin

```bash theme={null}
bunx @cloudshipai/station-skill install
```

This installs the Station skills to your OpenCode configuration.

### Verify Installation

After installation, the skills are available in OpenCode:

```
# Load the Station skill
/skill station

# Now ask questions or give commands
Create an agent that analyzes CloudWatch logs
```

## Prerequisites

Before using the plugin:

1. **Station CLI installed**: See [Installation](/station/installation)
2. **Station initialized**: Run `stn init` to set up your workspace
3. **OpenCode installed**: [OpenCode installation guide](https://github.com/sst/opencode)

```bash theme={null}
# Verify Station
stn --version

# Initialize Station
stn init

# Verify OpenCode
opencode --version
```

## Available Skills

### station

The core Station skill - load it with `/skill station`.

Covers:

* **Agent Management**: Create, run, list, update, delete agents
* **Dotprompt Format**: YAML frontmatter + Handlebars templates
* **MCP Tools**: Station's 55+ MCP tools for external integrations
* **Workflows**: State machine orchestration patterns
* **Environments**: Separate dev/staging/prod configurations
* **Bundles**: Package and distribute agent collections

### station-config

Configuration deep-dive - load it with `/skill station-config`.

Covers:

* **Global Config**: `~/.config/station/config.yaml` structure
* **AI Providers**: OpenAI, Anthropic, Azure, Ollama setup
* **Coding Backends**: OpenCode, Claude Code integration
* **CloudShip Platform**: Registration and management
* **OAuth**: Provider authentication flows
* **Environment Variables**: All supported env vars

## Usage Examples

### Creating an Agent

```
/skill station

Create a Station agent called "Log Analyzer" that:
- Uses Claude 3.5 Sonnet
- Has access to file reading tools
- Analyzes log files for errors and patterns
```

### Building a Workflow

```
/skill station

Create a Station workflow that:
1. Receives an alert from PagerDuty
2. Investigates the issue automatically
3. Requires human approval before remediation
4. Documents the resolution
```

### Configuration Help

```
/skill station-config

How do I configure Station to use Azure OpenAI instead of OpenAI directly?
```

## Skills vs MCP Tools

| Feature        | OpenCode Plugin  | Claude Code Plugin |
| -------------- | ---------------- | ------------------ |
| Skills         | Yes (2 skills)   | Yes (2 skills)     |
| MCP Tools      | No               | Yes (55+ tools)    |
| Slash Commands | No               | Yes (4 commands)   |
| Installation   | `bunx` one-liner | Plugin marketplace |

OpenCode's plugin provides **skills only**. For MCP tool integration, use the Station CLI directly:

```bash theme={null}
# Run agents via CLI
stn agent run "My Agent" "task description"

# List agents
stn agent list

# Execute workflows
stn workflow run "My Workflow" --input '{"key": "value"}'
```

## Troubleshooting

### Skills Not Loading

1. Verify installation succeeded:

```bash theme={null}
bunx @cloudshipai/station-skill install
```

2. Check OpenCode skill directory:

```bash theme={null}
ls ~/.config/opencode/skills/
# Should show station.md and station-config.md
```

3. Restart OpenCode after installation

### Station Commands Failing

1. Verify Station is installed:

```bash theme={null}
stn --version
```

2. Verify Station is initialized:

```bash theme={null}
stn env list
```

3. Check AI provider is configured:

```bash theme={null}
stn provider status
```

## Manual Installation

If the automated installer doesn't work, you can manually copy the skills:

```bash theme={null}
# Clone the Station repo
git clone https://github.com/cloudshipai/station.git

# Copy skills to OpenCode
mkdir -p ~/.config/opencode/skills
cp station/station-skill/skills/*.md ~/.config/opencode/skills/
```

## Next Steps

<CardGroup cols={2}>
  <Card title="Agent Development" icon="robot" href="/station/agents">
    Create custom AI agents
  </Card>

  <Card title="Workflows" icon="diagram-project" href="/station/workflows">
    Multi-step orchestration
  </Card>

  <Card title="Bundles" icon="package" href="/station/bundles">
    Package and distribute agents
  </Card>

  <Card title="Claude Code Plugin" icon="terminal" href="/station/claude-code">
    Full MCP integration for Claude Code
  </Card>
</CardGroup>
