[Integrations](https://spiral.ai/integrations) › [Gemini CLI](https://spiral.ai/integrations/gemini-cli) › [Bank of Canada policy rate](https://spiral.ai/integrations/gemini-cli/bank-of-canada-policy-rate)

# How to Use Bank of Canada policy rate in Gemini CLI

Fetch Canada's target for the overnight rate and its change history. Use it to establish the policy rate in effect on a reporting date, then consult the announcements for the Bank's explanation.

|  |  |
| --- | --- |
| Model | Bank of Canada policy rate |
| Available through | Alexandria |
| Category | Finance |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Bank of Canada policy rate in Gemini CLI

- Use Bank of Canada policy rate to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from Bank of Canada policy rate and tell me what changed since last week.
- Check Bank of Canada policy rate and summarize what you find in three bullet points.
- Pull the newest data from Bank of Canada policy rate and give me the result as a table.
- Check Bank of Canada policy rate every morning and tell me only when something changed.

## How to set up Bank of Canada policy rate in Gemini CLI

Pick the way that suits you. Each takes about two minutes.

### Use Spiral's MCP server

1. **Add the server**: Or add it to `~/.gemini/settings.json` yourself:

```bash
gemini mcp add --scope user --transport http spiral https://api.spiral.ai/mcp
```

2. **Sign in**: Start `gemini` and run:

```text
/mcp auth spiral
```

3. **Check it**: In Gemini CLI, run `/mcp`. From your shell:

```bash
gemini mcp list
```

### Use the Spiral skill

1. **Send Gemini CLI this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run Bank of Canada policy rate**: One request; the result comes back by polling or a webhook.

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "alexandria",
    "model": "bankofcanada-ca/economic-data/policy_rate",
    "input": {
      "date": "<date>"
    }
  }'
```

Then paste one of the prompts above: Gemini CLI finds Bank of Canada policy rate on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/gemini-cli

## Bank of Canada policy rate tools and prices

- [Bank of Canada (Valet API and press feeds) · Policy rate](https://spiral.ai/tools/alexandria/bankofcanada-ca/economic-data/policy_rate) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| date |  | — | As-of date, YYYY-MM-DD. The rate in effect on it is the latest business-day observation on or before it. Default: the latest published. Pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$. |
| start_date |  | — | Start of the change history, YYYY-MM-DD. Default: three years before date (or the last three years). Pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$. |

## What can you do with Bank of Canada policy rate in Gemini CLI?

Build a Canadian economic reporting feature with dated observations, series definitions, and Bank publications. A coding agent can put the retrieved data into project tables and charts while keeping benchmark yields and daily currency averages clearly labeled.

### Monthly treasury briefing

Combine CAD exchange rates, government bond yields, and the policy rate with decision statements and relevant Bank publications. Use the series directory and definitions to document additional indicators included in the briefing.

### Policy decision event study

Compare daily CAD exchange rates and benchmark yields around policy decisions. Add the policy rate history, announcement wording, related Bank publications, and selected Valet observations to distinguish measured changes from the Bank's explanation.

### Quarterly board reporting

Prepare a Canadian economic appendix with quarter-end rates, exchange-rate comparisons, bond yield movements, and policy commentary. Identify supplementary statistics through the directory and explain their definitions alongside the tables.

### Economics teaching workbook

Build exercises that connect the overnight target, benchmark yields, and CAD exchange rates to published policy statements and research. Include series discovery, definition checks, and historical observations so students can reproduce the comparisons.

### Policy communications digest

Pair the policy rate history with recent decisions, speeches, and publications. Show which meetings changed the rate and summarize the reasoning expressed in the Bank's published material.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All Gemini CLI guides](https://spiral.ai/integrations/gemini-cli)

## Bank of Canada policy rate in other agents

- [Amp](https://spiral.ai/integrations/amp/bank-of-canada-policy-rate)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/bank-of-canada-policy-rate)
- [Claude](https://spiral.ai/integrations/claude-desktop/bank-of-canada-policy-rate)
- [Claude Code](https://spiral.ai/integrations/claude-code/bank-of-canada-policy-rate)
- [Cline](https://spiral.ai/integrations/cline/bank-of-canada-policy-rate)
- [Codex](https://spiral.ai/integrations/codex/bank-of-canada-policy-rate)
- [Cursor](https://spiral.ai/integrations/cursor/bank-of-canada-policy-rate)
- [Devin](https://spiral.ai/integrations/devin/bank-of-canada-policy-rate)
- [dots](https://spiral.ai/integrations/dots/bank-of-canada-policy-rate)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/bank-of-canada-policy-rate)
- [Gemini](https://spiral.ai/integrations/gemini/bank-of-canada-policy-rate)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/bank-of-canada-policy-rate)
- [goose](https://spiral.ai/integrations/goose/bank-of-canada-policy-rate)
- [Grok](https://spiral.ai/integrations/grok/bank-of-canada-policy-rate)
- [Grok Build](https://spiral.ai/integrations/grok-build/bank-of-canada-policy-rate)
- [Hermes](https://spiral.ai/integrations/hermes/bank-of-canada-policy-rate)
- [Instinct](https://spiral.ai/integrations/instinct/bank-of-canada-policy-rate)
- [Manus](https://spiral.ai/integrations/manus/bank-of-canada-policy-rate)
- [Muse](https://spiral.ai/integrations/muse/bank-of-canada-policy-rate)
- [Muse Code](https://spiral.ai/integrations/muse-code/bank-of-canada-policy-rate)
- [n8n](https://spiral.ai/integrations/n8n/bank-of-canada-policy-rate)
- [Notion](https://spiral.ai/integrations/notion/bank-of-canada-policy-rate)
- [OpenClaw](https://spiral.ai/integrations/openclaw/bank-of-canada-policy-rate)
- [opencode](https://spiral.ai/integrations/opencode/bank-of-canada-policy-rate)
- [Perplexity](https://spiral.ai/integrations/perplexity/bank-of-canada-policy-rate)
- [Raycast](https://spiral.ai/integrations/raycast/bank-of-canada-policy-rate)
- [VS Code](https://spiral.ai/integrations/vscode/bank-of-canada-policy-rate)
- [Windsurf](https://spiral.ai/integrations/windsurf/bank-of-canada-policy-rate)
- [Zapier](https://spiral.ai/integrations/zapier/bank-of-canada-policy-rate)

## More Gemini CLI guides

- [Bank of Canada news](https://spiral.ai/integrations/gemini-cli/bank-of-canada-news)
- [Bank of Canada rate announcements](https://spiral.ai/integrations/gemini-cli/bank-of-canada-rate-announcements)
- [Bank of Canada exchange rates](https://spiral.ai/integrations/gemini-cli/bank-of-canada-exchange-rates)
- [Bank of Canada series directory](https://spiral.ai/integrations/gemini-cli/bank-of-canada-series-directory)
- [Bank of Canada economic statistics](https://spiral.ai/integrations/gemini-cli/bank-of-canada-economic-statistics)
- [Bank of Canada series metadata](https://spiral.ai/integrations/gemini-cli/bank-of-canada-series-metadata)

## Questions about Bank of Canada policy rate in Gemini CLI

**Can Gemini CLI use Bank of Canada policy rate?**

Yes. Add Spiral to Gemini CLI as an MCP server, and Gemini CLI can find and run Bank of Canada policy rate like any built-in tool.

**How much does Bank of Canada policy rate cost in Gemini CLI?**

$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Gemini CLI plan is separate.

**Do I need an Alexandria account to use Bank of Canada policy rate in Gemini CLI?**

No. Spiral runs Bank of Canada policy rate on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up Bank of Canada policy rate in Gemini CLI?**

About two minutes: add the server, then sign in, then check it.

**Does Gemini CLI wait while Bank of Canada policy rate runs?**

Bank of Canada policy rate runs in the background. Gemini CLI starts the run, checks on it and gives you the json when it's ready.

**What does the Bank of Canada publish through these sources?**

Valet supplies exchange rates, economic statistics, and other financial datasets. The Bank's feeds add its own press releases, speeches, research publications, surveys, and events.

**How frequently do the Bank's exchange rates change?**

Daily averages are normally published once per business day by 16:30 Eastern Time. They do not provide intraday trading quotes.

**Are the exchange rates executable market rates?**

The Bank publishes indicative averages based on aggregated quotes from financial institutions. An actual currency conversion can therefore use a different rate.

**Does a benchmark bond yield follow the same bond forever?**

The selected bond can change as another issue becomes the benchmark. The Bank warns that part of a yield change can reflect this replacement.

**Does new data appear in Valet immediately?**

The Bank documents a possible processing delay between publication and availability in Valet. A newly released observation may therefore appear later than the corresponding website update.

