Install
Requirements
Section titled “Requirements”- 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, …).
From npm (recommended)
Section titled “From npm (recommended)”npm install -g @usepolyglot/cliThat 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:
polyglot --versionFrom source
Section titled “From source”git clone https://github.com/giuseppe-sirigu/polyglot.gitcd polyglotpnpm installpnpm buildThis builds @usepolyglot/core (the provider-agnostic engine) and
@usepolyglot/cli (the terminal frontend). Run it with:
node packages/cli/dist/main.jsTo get the short polyglot command from a source checkout:
pnpm setup # one-time: registers pnpm's global bin dir on PATHsource ~/.bashrc # or ~/.zshrccd packages/cli && pnpm link --global