# Get started with the Fire Opal plugin for Claude Code

> Install the Fire Opal plugin, sign in, and run your first circuit from Claude Code

Source: https://docs.q-ctrl.com/agent-resources/plugins/get-started-with-the-fire-opal-plugin-for-claude-code

The Fire Opal plugin adds Fire Opal slash commands to [Claude Code](https://code.claude.com/docs). With it, you can check circuits, run them on real hardware with Fire Opal error suppression, and read the results, all from your terminal.

The plugin runs Fire Opal through [Q-CTRL MCP](https://docs.q-ctrl.com/agent-resources/mcp.md). You sign in with your Q-CTRL account, and Q-CTRL saves your hardware credentials on its server. Nothing is installed on your computer, and no API keys are kept there.

Every command starts with `/fire-opal-mcp:`, for example `/fire-opal-mcp:run`.

## Before you start

You need:

- Claude Code, with plugin and MCP sign-in support.
- A Q-CTRL account in an organization that can use Fire Opal.
- An account with at least one [hardware provider](https://docs.q-ctrl.com/fire-opal/discover/hardware-providers/supported-hardware-providers.md): IBM Cloud, Amazon Braket or IonQ.
- Python with Qiskit, only if your circuits are in Python files.

## Install the plugin

In Claude Code, add the Q-CTRL plugin marketplace, then install the plugin:

```text
/plugin marketplace add qctrl/marketplace
/plugin install fire-opal-mcp@qctrl
```

## Sign in

1. Run `/mcp`.
2. Select `plugin:fire-opal-mcp:qctrl`.
3. Sign in with your Q-CTRL account in the browser. The browser then sends you back to Claude Code.

## Set up

Run:

```text
/fire-opal-mcp:setup
```

Claude checks who you are signed in as, and whether your organization can use Fire Opal. It then lists your saved hardware credentials.

If you have no credential, Claude opens a Q-CTRL page in your browser. Enter your credential there. You never type a secret into the chat, so the AI model never sees it.

| Provider      | What you enter                                                                                       |
| ------------- | ---------------------------------------------------------------------------------------------------- |
| IBM Cloud     | An IBM Cloud API key and the CRN of your [IBM Quantum instance](https://quantum.cloud.ibm.com/instances) |
| Amazon Braket | An IAM role ARN that trusts the Q-CTRL AWS account                                                   |
| IonQ          | An IonQ API key                                                                                      |

## Run your first circuit

1. **Pick a backend.** Run `/fire-opal-mcp:devices` to list the backends you can use, for example `ibm_fez`.
2. **Check the circuit.** Run `/fire-opal-mcp:validate bell.qasm ibm_fez`. This is free and uses no hardware time.
3. **Run it.** Run `/fire-opal-mcp:run bell.qasm ibm_fez 2048`. Claude Code asks you to approve the job before anything is sent to hardware, because it uses time on your provider account.
4. **Get the results.** Claude waits for the job and shows the most likely bitstrings with their probabilities. Hardware queues can take minutes or hours. If the job is still queued, Claude gives you the job ID. Run `/fire-opal-mcp:result <job_id>` later to get it.

A circuit can be a `.qasm` file, a folder of them, or a Python file that defines Qiskit `QuantumCircuit` objects. For a Python file, Claude exports the circuits to OpenQASM with your own Python.

If you are in more than one organization, Claude asks which one to run in.

## Good to know

- **You approve every job.** Commands that run on hardware start only when you type them, and Claude Code asks you before it submits. Checks, status and results run without asking.
- **Checks are free.** Validating circuits and listing devices use no hardware time.
- **Results are saved only when you ask.** Ask Claude to save a result, and it writes `fire-opal-results/<job_id>.json` in your project.
- **Each job runs at most 300 circuits.** For more, use `/fire-opal-mcp:iterate`, which splits them into steps.

To see every command, read [Fire Opal plugin commands](https://docs.q-ctrl.com/agent-resources/plugins/fire-opal-plugin-commands.md).
