Tips for Gemini CLI Users
March 8, 2026 · View on GitHub
If you're coming from Gemini CLI, this guide highlights the key differences and shows you how to get productive quickly.
Command Name Differences
| Gemini CLI | LLxprt Code | Notes |
|---|---|---|
gemini | llxprt | CLI binary name |
@resume | /continue | Resume a previous session |
% (shell escape) | ! or shell tool | Run shell commands |
/auth (Google-only) | /auth | Multiple providers: gemini, anthropic, codex, qwen |
Authentication: Use the Keyring
Gemini CLI uses environment variables (GEMINI_API_KEY) or OAuth for Google only. LLxprt Code supports multiple providers and stores credentials in your OS keyring, which is more secure than environment variables.
Why keyring over env vars? Environment variables can leak through process listings (ps), child process inheritance, shell history, and CI logs. The OS keyring is encrypted at rest and requires authentication to access.
Save a key to the OS keyring from inside a session:
/key save xai-prod your-api-key-value
Then use it in future sessions — the key never appears in shell history:
llxprt --provider xai --key-name xai-prod
Or use a keyfile for CI/automation:
llxprt --provider xai --keyfile ~/.llxprt/keys/.xai_key
For OAuth providers (Gemini, Anthropic, Codex, Qwen), enable them:
/auth gemini enable
/auth anthropic enable
With /auth <provider> enable, authentication is lazy — a browser opens automatically when you make your first request. Use /auth <provider> login to open the browser immediately.
See Authentication for full details.
Profiles Replace Manual Configuration
Instead of setting provider/model/parameters every session, save a profile:
/provider xai
/model grok-4
/set reasoning.enabled true
/profile save grok
/profile set-default grok
Load at startup:
llxprt --profile-load grok
This is the recommended way to manage configuration. See Profiles.
Sandboxing
LLxprt Code supports running in sandboxed containers (Docker/Podman) for safety. You can even create sandbox-specific profiles that automatically run in a container:
# Run sandboxed
llxprt --sandbox docker
Create a sandbox profile from inside a session:
/set sandbox docker
/set sandbox-engine podman
/profile save sandboxed
See Sandboxing.
Syncing Configurations with Gemini CLI
If you run both tools, you can share some configuration via symlinks:
# Link context/memory files
ln -s ~/.gemini/GEMINI.md ~/.llxprt/LLXPRT.md
# Link MCP server configs (usually compatible)
ln -s ~/.gemini/settings.json ~/.llxprt/settings.json
Caveats: Settings aren't 100% compatible. LLxprt Code has multi-provider auth, profiles, and settings that Gemini CLI doesn't. If you hit issues, maintain separate configs.
What Transfers Well
- MCP server configurations (if paths are absolute)
- Context/memory files (GEMINI.md → LLXPRT.md)
.envfiles (though keyring is preferred over env vars)
What Doesn't Transfer
- Authentication (different auth systems)
- Model configuration (profiles vs single default)
- Provider-specific settings
Migration Tips
Recommended approach: Start fresh rather than symlinking everything.
- Install LLxprt Code and run it without symlinks
- Set up auth:
/auth <provider> enablefor OAuth providers, or--key-namefor API keys - Configure your preferred setup and save a profile
- Optionally symlink your LLXPRT.md / GEMINI.md context file