Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Support multiple profiles (instances/accounts)

Aperta
#24 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
48/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
go
Ambito
cli

Direzione di ricerca

Inizia leggendo internal/config/CLAUDE.md, in particolare il TODO di profile-support, quindi segui il login auth esistente, il caricamento della configurazione, l'archiviazione nel keyring e la gestione dei flag del comando. Definisci la migrazione dalla configurazione piatta e verifica che la selezione del profilo segua la precedenza indicata, preservando le configurazioni esistenti.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Is your feature or enhancement related to a problem? Please describe.

The CLI stores a single instance in ~/.chatwoot/config.yaml (base URL + account ID, with the token in the OS keyring). If you work across more than one Chatwoot there's no way to keep them side by side: a self-hosted staging vs production, an agency with several client accounts, or one person who belongs to multiple accounts. The only option today is re-running auth login, which overwrites the saved login every time you switch. internal/config/CLAUDE.md already lists this as a TODO ("Add profile support (multiple saved credentials)").

Describe the solution you'd like

Named profiles, following the CLI's existing noun grammar:

chatwoot auth login --profile staging   # save a second instance
chatwoot profiles                        # list saved profiles
chatwoot profile staging use             # set the default
chatwoot --profile staging convs         # one-off override for one command

Resolution order: --profile flag, then CHATWOOT_PROFILE, then a configured default, then default. Each profile keeps its own token in the keyring. The existing flat config would migrate into a default profile on first load, so current setups keep working with no re-login.

Describe alternatives you've considered
  • Re-running auth login to switch instances (the status quo, loses the previous login each time).
  • CHATWOOT_API_KEY plus -a for the account, but the env var is global, so it can't hold more than one instance at once and still needs the matching base URL.
  • Hand-managed config files or per-shell wrappers, which is the manual version of what profiles would do.
Additional context

I run a few instances and would be glad to open a PR for this if it's a direction you'd accept.

Lingua principale
Go
Stelle
9
Fork
5
Merge medio
2m
PR unite (30g)
2

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di chatwoot/cli

Tutte le issue di chatwoot/cli

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.