convez.ai
AgenteDevOps & InfraestruturaIntermediário
turinmouse

lazycc

turinmouse/lazycc

Gerencie perfis de API para agentes de código sem reabrir o terminal

Ver no GitHub
InicialPluginScore · de 0 a 100

CLI/TUI em Rust para gerenciar perfis de provedores de API (OpenAI, Anthropic) usados por agentes de codificação como Codex e Claude Code. Permite alternar entre perfis sem reabrir o shell, mantendo configurações separadas por ferramenta e armazenando chaves de API localmente.

Instalação

$npx convez-ai turinmouse/lazycc

1 comando no terminal: detecta o formato do repositório (marketplace ou plugin avulso) e instala via Claude Code. Requer Node 18+ e o Claude Code instalado.

Métricas

Estrelas
0
Forks
0
Acompanhando
0
Saúde
28%
Último commit
há 5 meses
Versão
v0.2.7
Issues abertas
0
Contribuidores
1

Casos de uso

  • Alternar entre múltiplas contas OpenAI/Anthropic sem reconfigurações
  • Manter perfis separados para Codex e Claude Code na mesma máquina
  • Automatizar seleção de provedores em scripts e workflows locais

Veredito

Ferramenta prática e bem-implementada para fluxos de desenvolvimento local envolvendo múltiplos agentes de IA. Soluciona efetivamente a fricção de gerenciar credenciais de múltiplos provedores simultaneamente, com interface TUI intuitiva e integração shell limpa.

README

A tradução para o português deste README ainda está na fila.

lazycc

Switch coding-agent provider profiles without re-opening your shell.

lazycc is a small Rust CLI/TUI for managing API profiles used by Codex, Claude Code, and related coding-agent tools. It keeps each tool's active profile separate, generates shell exports, and refreshes your current shell after profile changes.

Highlights

  • Manage Codex and Claude Code provider profiles from one place.
  • Use a terminal UI for daily profile switching.
  • Keep one current profile per target.
  • Mask API keys in list/detail views.
  • Wrap codex only when a non-default Codex profile is selected.
  • Store config locally at ~/.config/lazycc/config.toml.

Install

Install from the Homebrew tap:

brew install turinmouse/tap/lazycc

Or install from source:

cargo install --path .

The Homebrew tap lives at:

https://github.com/turinmouse/homebrew-tap

Quick Start

Add lazycc to your shell startup file:

eval "$(lazycc init zsh)"

Then open the TUI:

lazycc tui

Add a profile, select it, and your current shell will be refreshed automatically when the TUI exits after a successful profile change.

Terminal UI

The TUI has two main areas:

  • Left: [1] Tools - Targets - Profiles
  • Right: [0] Configuration

Navigation is hierarchical. Select a target first, enter its profiles, then choose the active profile.

KeyAction
Up / DownMove within the current list
Enter / Space on a targetOpen profiles for that target
Enter / Space on a profileUse the selected profile
Esc in profilesReturn to targets
1Focus the tools area
2Focus profiles
0Focus profile details
Left / RightMove between targets and profiles
n / aAdd a profile for the selected target
eEdit the selected custom profile
dDelete the selected custom profile
tToggle theme
qQuit

In add/edit forms, Tab or arrow keys move between fields, Enter saves, and Esc cancels.

Built-in openai and anthropic profiles are read-only and cannot be deleted.

CLI

The command interface is useful for scripts and quick changes:

lazycc add work
lazycc add work --target codex
lazycc list
lazycc use work
lazycc use work --target claude
lazycc del work
lazycc del work --target codex

Running lazycc without a subcommand prints help. Use lazycc tui for the profile manager.

Targets

TargetEnvironment
codexOPENAI_BASE_URL, OPENAI_API_KEY
claudeANTHROPIC_BASE_URL, ANTHROPIC_AUTH_TOKEN, ANTHROPIC_MODEL

For Codex, selecting any profile other than the built-in openai profile also registers a shell codex wrapper. The wrapper injects the selected profile as a Codex model_provider, applies the profile model when set, and forwards all command arguments unchanged.

Built-In Profiles

lazycc creates two empty built-in profiles:

  • openai for codex
  • anthropic for claude

Each target has its own active profile, so both built-ins are selected by default and appear with * in lazycc list.

Using a built-in profile leaves the related provider variables unset after lazycc init zsh runs. Using Codex profile openai also leaves the real codex command unwrapped.

Config

Profiles are stored in:

~/.config/lazycc/config.toml

Each profile contains:

  • name
  • target
  • base_url
  • api_key
  • model

Do not commit real provider keys or generated user config.

Release

Tagging a version creates prebuilt release archives and updates the Homebrew tap formula:

git tag v0.2.2
git push origin v0.2.2

The release workflow expects this repository secret:

HOMEBREW_TAP_TOKEN

The token needs permission to push to turinmouse/homebrew-tap.

Ver o original no GitHub

Bom para

Relacionados