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

# OpenCode

> Install the Glasser Skill in OpenCode, sign in, and make your first request.

Connect OpenCode to Glasser so it can find company, people, web, and market data for your work.
You need a local session with terminal and internet access.

**1. Open your agent**

Run `opencode` in a local project folder, or open a local session in the OpenCode desktop app.
Use the Build agent, which is the default, so OpenCode can run commands.

**2. Ask it to install the Skill**

Paste this into the chat:

```text wrap theme={null}
set up https://glasser.ai/SKILL.md
```

The agent should save the Skill and install or update the Glasser CLI. Approve the required
file and install actions when your client asks. If Node.js 22 or newer is missing, have the
agent help you install it before continuing.

**3. Sign in to Glasser**

The agent starts `glasser login` and shows a browser link and an eight-character code.
Open the link, sign in or create an account, check that the code matches, and approve access
to your Glasser Workspace. If prompted, create a Workspace first.

Return to the chat and let the agent finish the balance check. The CLI stores the Key
locally; you do not need to copy it into the chat. An existing valid login can skip this step.

**4. Check it in a new conversation**

Start a new session so the client can discover the saved Skill. Paste:

```text wrap theme={null}
Use the installed Glasser Skill to check my available balance. Do not make any paid Runs.
```

A successful check returns your balance. If the agent cannot find the Skill, ask it to check
`~/.config/opencode/skills/glasser/SKILL.md`, then restart the client. A zero balance still confirms that sign-in works;
add funds in the [Glasser console](https://app.glasser.ai) before a paid Run.

## Try your first request

```text wrap theme={null}
Use Glasser to find recent news about Stripe. Show me the data you can retrieve and the price, then wait for my approval before any paid Run.
```

After you approve, the agent can retrieve the data and report the result and charge.

For Skill locations and permissions, see the [OpenCode Skills documentation](https://opencode.ai/docs/skills/).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.