# OpenCode

> Set up OpenCode with the uip CLI and UiPath skills, then install, check, and remove the skills.

An open-source coding agent for the terminal and desktop.

[← All agents](choosing-your-agent.md) · [OpenCode docs](https://opencode.ai/docs) · [UiPath skills on GitHub](https://github.com/UiPath/skills)

## Quick start

1. **Install OpenCode.** For other install methods, see the OpenCode docs.

   ::::tabs{groupId="os"}

   :::tab[Windows]{value="windows" default}
   ```powershell
   npm install -g opencode-ai
   ```
   :::

   :::tab[macOS and Linux]{value="macos-linux"}
   ```bash
   curl -fsSL https://opencode.ai/install | bash
   ```
   :::

   ::::

2. **Install the `uip` CLI and sign in.** For options, see [Install and set up](install-and-set-up.md).

   ::::tabs{groupId="os"}

   :::tab[Windows (PowerShell)]{value="windows" default}
   ```powershell
   irm https://download.uipath.com/uipath-cli/install.ps1 | iex
   ```
   :::

   :::tab[macOS and Linux]{value="macos-linux"}
   ```bash
   curl -fsSL https://download.uipath.com/uipath-cli/install.sh | bash
   ```
   :::

   ::::

   Open a new terminal, then sign in:

   ```bash
   uip login
   ```

3. **Install the UiPath skills.** The installer adds them for agents it detects. If you installed OpenCode afterwards, run:

   ```bash
   uip skills install --agent opencode
   ```

4. **Start OpenCode in your project folder.**

   ```bash
   opencode
   ```

5. **Check that the skills loaded.** Ask: "What UiPath skills do you have installed?" If OpenCode lists none, restart it.

6. **Try a prompt.** For example:

   > Create a sample `input.csv` with five rows. Then create a cross-platform UiPath RPA project that reads each row of `input.csv`, counts the rows, and writes the total to `output.txt`. Then run it.

## Install scope and paths

The install is global by default. For one project, add `--local`:

```bash
uip skills install --agent opencode --local
```

The global and local folder names differ.

| Scope | Path |
| --- | --- |
| Global | `~/.config/opencode/skills/<skill>/` |
| Local (`--local`) | `<project>/.opencode/skills/<skill>/` |

## Project context file

`AGENTS.md`, or `CLAUDE.md` when the project has no `AGENTS.md`. See [Give your agent project context](agent-context-files.md).

## Remove the skills

```bash
uip skills uninstall --agent opencode
```

Add `--local` for a project-scoped install.
