# Thunder Compute OpenClaw Plugin

Native OpenClaw plugin bridge for the Thunder Compute MCP server.

This plugin exposes `tc_*` tools inside OpenClaw so an agent can authenticate with Thunder Compute, discover live GPU options, create instances, run commands, create snapshots, delete instances, and report cost.

## Included Files

```text
openclaw.plugin.json
package.json
package-lock.json
index.ts
skills/thunder-compute/SKILL.md
```

## Install

From this plugin directory:

```bash
npm install
openclaw plugins install .
openclaw config set plugins.entries.thunder-compute.enabled true --strict-json
openclaw config set plugins.entries.thunder-compute.config.endpoint "https://api.thundercompute.com:8443/mcp"
openclaw config set tools.alsoAllow '["thunder-compute"]' --strict-json
openclaw gateway restart
```

If upgrading from an earlier beta:

```bash
openclaw plugins uninstall thunder-compute
openclaw plugins install .
openclaw gateway restart
```

## Tools

Auth:

- `tc_auth_status`
- `tc_auth_begin`
- `tc_auth_complete`
- `tc_auth_clear`

Discovery:

- `tc_list_available_tools`
- `tc_get_specs`
- `tc_get_availability`
- `tc_get_pricing`
- `tc_list_templates`
- `tc_list_instances`
- `tc_get_upcoming_invoice`

Instance operations:

- `tc_create_instance`
- `tc_run_command`
- `tc_delete_instance`
- `tc_create_snapshot`

## First Test

Start OpenClaw:

```bash
openclaw tui --session thunder-compute-beta --deliver
```

Authenticate:

```text
Use tc_auth_begin and give me only the authentication URL and next instruction.
```

After browser approval, pass the redirected callback URL to:

```text
Use tc_auth_complete with this redirected URL: <FULL_REDIRECTED_URL>
```

Run a smoke test:

```text
Spin up an A100, wait until it is ready, run `nvidia-smi`, then tear it down and tell me the cost.
```

The agent should create the instance, wait until it is running, run the command, delete the instance, and report cost.
