Skip to content

Install

  • Node.js ≥ 20
  • Either an Anthropic API key, or a local or remote OpenAI-compatible inference server (Ollama, vLLM, LM Studio, llama.cpp server, TGI, …).
Terminal window
npm install -g @usepolyglot/cli

That puts a polyglot command on your PATH. pnpm add -g / yarn global add / bun add -g work too - Polyglot detects which one you used for its auto-update check.

Verify:

Terminal window
polyglot --version
Terminal window
git clone https://github.com/giuseppe-sirigu/polyglot.git
cd polyglot
pnpm install
pnpm build

This builds @usepolyglot/core (the provider-agnostic engine) and @usepolyglot/cli (the terminal frontend). Run it with:

Terminal window
node packages/cli/dist/main.js

To get the short polyglot command from a source checkout:

Terminal window
pnpm setup # one-time: registers pnpm's global bin dir on PATH
source ~/.bashrc # or ~/.zshrc
cd packages/cli && pnpm link --global