GoFin + your agent

# Set up your AI agent

Codex, Claude Code, OpenClaw or Hermes. One local CLI, with credentials and financial limits handled by GoFin’s protected broker.

```text
Follow https://gofin.sh/docs/agents/ to set up GoFin with my AI agent, using the latest GoFin release. Guide me through any protected steps in my own Terminal and verify the setup.
```

<a name="before-you-start"></a>

<a name="before-you-start-title"></a>

## 1. Start with GoFin on your Mac

[Install GoFin](/docs/index.md#installation), then use an agent session that can run shell commands on that Mac. The protected runtime requires macOS 13 or newer on Apple Silicon or Intel and administrator access for installation. Setup works in Apple Terminal or a human-controlled macOS system OpenSSH session without GUI login or Touch ID; financial approval remains separate. These instructions assume the latest GoFin release. [Update GoFin](/docs/index.md#updates) before starting; available capabilities depend on your connections.

Open a new Terminal or SSH login session after installation and check:

```sh
gofin --version
gofin doctor
gofin skill install --help
```

Complete protected setup and credential entry yourself in Apple Terminal or your own macOS system OpenSSH session. The skill supplies instructions; installing it grants no financial authority. The discovery request below needs no connected account or deposit. For a useful public market read, follow the [read-only trial](/docs/try/index.md).

<a name="choose-agent"></a>

<a name="choose-agent-title"></a>

## 2. Add the skill for your agent

Run the commands for your agent as your normal Mac user, without `sudo`. If you selected that agent during GoFin setup, inspection may already report `current`.

<a name="codex"></a>

<a name="codex-title"></a>

### Codex

```sh
gofin skill install --agent codex
gofin skill inspect --agent codex
```

The managed skill is `~/.agents/skills/gofin/SKILL.md`. Codex detects local skill changes; restart it if GoFin does not appear. Ask Codex to use the GoFin skill explicitly. In Codex CLI or the IDE extension, you can also find it through `/skills` or a `$` mention.

<a name="claude-code"></a>

<a name="claude-code-title"></a>

### Claude Code

```sh
gofin skill install --agent claude
gofin skill inspect --agent claude
```

The managed skill is `~/.claude/skills/gofin/SKILL.md`. In a local Claude Code session, invoke `/gofin` or ask Claude to use the GoFin skill. Start a new session if it is missing. A skill installed in your Mac’s home directory does not by itself give a cloud session access to GoFin on that Mac.

<a name="openclaw"></a>

<a name="openclaw-title"></a>

### OpenClaw

```sh
gofin skill install --agent openclaw
gofin skill inspect --agent openclaw
```

The managed skill is `~/.openclaw/skills/gofin/SKILL.md`. Check `openclaw skills list`, then start a new session and ask it to use GoFin. Workspace skills and, in OpenClaw’s default state, `~/.agents/skills/gofin` can take precedence. Confirm the actual loaded path; GoFin inspection only checks its managed copy.

GoFin does not resolve `OPENCLAW_STATE_DIR` or custom profiles. Configure the intended skill root for those setups. This guide covers local macOS execution; host skill eligibility alone does not establish CLI or broker access from a sandbox.

<a name="hermes"></a>

<a name="hermes-title"></a>

### Hermes

```sh
gofin skill install --agent hermes
gofin skill inspect --agent hermes
```

The managed skill is `~/.hermes/skills/gofin/SKILL.md`. Check `hermes skills list`, start a new Hermes session, and invoke `/gofin` or ask it to use the GoFin skill.

GoFin manages the default user-home path, not `HERMES_HOME` or custom profiles. Make sure the active profile loads the intended copy and its execution tool runs on the GoFin Mac.

<a name="first-request"></a>

<a name="first-request-title"></a>

## 3. Make a first read-only request

Paste this into the agent you configured:

```text
Use the GoFin skill to check my installed version and available capabilities, then suggest three read-only things I can explore. Keep this check to inspection only and tell me if anything is missing.
```

The agent should report your installed version and real capabilities, or explain what is missing. For a specific read, it should inspect `gofin explain NAME --json` and `gofin schema NAME --json`, with `NAME` taken from current discovery.

Discovery needs no broker or credentials. It does not prove that an account is connected, a provider is reachable or financial execution is ready.

<a name="account-reads"></a>

<a name="account-reads-title"></a>

## 4. Explore your connected accounts

When you want account balances, [connect an account in your own Terminal](/docs/connections/index.md). Enter API keys and private keys only in GoFin’s protected prompt. Then ask:

```text
Use GoFin to show balances for the accounts I have connected. Discover the supported read operations first. Include asset and network identities and available timestamps; report missing or incomplete data. Do not place trades, transfer funds, change settings or ask me to paste credentials.
```

Account reads require completed setup, an accessible broker and the provider’s required permissions. A failed observation is not a zero balance.

Your agent chooses CLI commands. GoFin’s local broker uses the credentials and independently enforces financial authority and limits. Reads need no financial approval. See [limits and approval](/docs/index.md#boundaries) before requesting financial actions.

<a name="troubleshooting"></a>

<a name="troubleshooting-title"></a>

## If something is missing

### The agent cannot find GoFin

Ask it to run `command -v gofin` through its actual execution tool. If GoFin works in Terminal but not the agent, check that tool’s PATH and restart the local session after setup. A skill does not connect a remote host or container to your Mac’s broker.

### GoFin rejects an agent name

Check `gofin skill install --help` and `gofin capabilities`. [Update GoFin](/docs/index.md#updates), then use the target listed for your agent.

### The skill is missing or outdated

Inspect the copy for your target. Replace `AGENT` below with `codex`, `claude`, `openclaw` or `hermes`:

```sh
gofin skill inspect --agent AGENT
gofin skill update --agent AGENT
```

Update applies to an existing managed copy and uses the skill bundled with your current GoFin binary. [Update GoFin](/docs/index.md#updates) first if you need a newer bundled skill. GoFin does not manage copies installed through another agent’s installer.

### The skill has edits or a conflict

Review the reported files before changing them. GoFin preserves modified or unmanaged content; follow its [backup and conflict instructions](https://raw.githubusercontent.com/LimeChain/gofin-cli/main/docs/companion-skill.md#maintenance-and-conflicts). A `current` result describes GoFin’s managed files, not which copy the agent actually loaded.

### Account reads fail

Run `gofin doctor` yourself, check the connection and provider permissions, and follow any human setup instructions. Report incomplete observations without inventing balances.

<a name="references"></a>

<a name="references-title"></a>

## References

See the [GoFin agent skill guide](https://raw.githubusercontent.com/LimeChain/gofin-cli/main/docs/companion-skill.md) for installation, compatibility and maintenance details.

- [Codex skills](https://learn.chatgpt.com/docs/build-skills#where-codex-loads-local-skills)
- [Claude Code skills](https://code.claude.com/docs/en/skills#choose-where-skills-load)
- [OpenClaw skills](https://docs.openclaw.ai/tools/skills)
- [Hermes skills](https://hermes-agent.nousresearch.com/docs/guides/work-with-skills/)
