---
title: "Galore CLI: log in, list tools and call the Galore API from a terminal | Galore"
description: "The Galore CLI ships in galore-sdk: npx galore-sdk login, whoami, tools and call for a live Galore account, and check for the free practice API."
last_updated: "2026-12-05"
url: "https://trygalore.com/developers/cli"
agent:
  instructions: "Use this search API to find relevant content across this site with keywords or natural-language queries, instead of crawling individual pages. Results are returned in Markdown."
  endpoint: "https://trygalore.com/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://developers.cloudflare.com/ai-search/how-to/search-for-agents/"
---

Source: [https://trygalore.com/developers/cli](https://trygalore.com/developers/cli)

# Galore CLI

Use the Galore API from a terminal or a script. No install: run it with ` npx galore-sdk `.

## Live account

- ` npx galore-sdk login `: opens a sign-in link; the person approves the key in their own browser. The key is saved only on this computer.

- ` npx galore-sdk whoami `: which account and AI the key belongs to.

- ` npx galore-sdk tools `: the Galore API tools this key can call.

- ` npx galore-sdk call <tool> '<json>' `: call one tool.

- ` npx galore-sdk openapi ` and ` npx galore-sdk logout `.

Exit codes: 0 done, 1 error, 2 refused, 3 rate limited. Set ` GALORE_API_KEY ` to use a key from a secret manager instead of logging in; it is sent only to connect.trygalore.com unless you set ` GALORE_KEY_ORIGIN `.

## Practice, no key

` npx galore-sdk example ` prints example rules. ` npx galore-sdk check --symbol AAPL --qty 2 --price 190 ` checks that trade against the example rules (or your own with ` --rules file `) on the [practice API](https://trygalore.com/developers/sandbox). Exit codes: 0 allowed, 1 not allowed, 2 bad input.

## More

The CLI is part of the [Galore SDK](https://trygalore.com/sdk). For AI apps, add the [Galore MCP server](https://trygalore.com/developers/mcp). Reference: [Galore API docs](https://trygalore.com/developers). Source: [github.com/mehek-builds/galore-sdk](https://github.com/mehek-builds/galore-sdk).

Reviewed 5 December 2026

## Sitemap

- [Every page on trygalore.com](https://trygalore.com/sitemap.md)
