| name | lokalise-install-auth |
| description | Install and configure Lokalise SDK/CLI authentication.
Use when setting up a new Lokalise integration, configuring API tokens,
or initializing Lokalise in your project.
Trigger with phrases like "install lokalise", "setup lokalise",
"lokalise auth", "configure lokalise API token".
|
| allowed-tools | Read, Write, Edit, Bash(npm:*), Bash(pip:*), Bash(lokalise2:*), Grep |
| version | 1.14.0 |
| license | MIT |
| author | Jeremy Longshore <jeremy@intentsolutions.io> |
| tags | ["saas","lokalise","api","authentication"] |
| compatibility | Designed for Claude Code, also compatible with Codex and OpenClaw |
Lokalise Install & Auth
Overview
Set up Lokalise SDK/CLI and configure API token authentication for translation management. Covers the Node.js SDK (@lokalise/node-api v12+), the CLI (lokalise2), and OAuth2 for Lokalise apps.
Prerequisites
- Node.js 18+ (SDK v9+ is ESM-only)
- Package manager (npm, pnpm, or yarn)
- Lokalise account with project access
- API token from Lokalise profile settings
Instructions
Step 1: Install Node.js SDK
set -euo pipefail
npm install @lokalise/node-api
npm install @lokalise/node-api@8
Step 2: Install CLI Tool
set -euo pipefail
brew tap lokalise/cli-2
brew install lokalise2
LATEST_CLI=$(curl -s https://api.github.com/repos/lokalise/lokalise-cli-2-go/releases/latest \
| grep -oP '"tag_name": "\K[^"]+')
curl -sL "https://github.com/lokalise/lokalise-cli-2-go/releases/download/${LATEST_CLI}/lokalise2_linux_x86_64.tar.gz" | tar xz
sudo mv lokalise2 /usr/local/bin/
lokalise2 --version
Step 3: Generate API Token
- Log into Lokalise
- Click profile avatar > Profile Settings
- Go to API tokens tab
- Click Generate new token
- Choose Read and write for full access (or Read only for CI download pipelines)
- Copy the token immediately (shown only once)
Step 4: Configure Authentication
export LOKALISE_API_TOKEN="your-api-token"
>> .
lokalise2 --token project list