Support multiple profiles (instances/accounts)
まだ誰も着手していません。
評価
調査の方向性
まず internal/config/CLAUDE.md、特に profile-support の TODO を読み、既存の auth login、設定の読み込み、keyring への保存、コマンドフラグの処理を追跡します。フラットな設定からの移行を定義し、既存のセットアップを維持しながら、プロファイル選択が指定された優先順位に従うことを確認します。
索引モデルが issue の本文から書いたものです。
説明
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 loginto switch instances (the status quo, loses the previous login each time). CHATWOOT_API_KEYplus-afor 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.
- 主要言語
- Go
- スター
- 9
- フォーク
- 5
- 平均マージ
- 2分
- マージ済み PR(30日)
- 2
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
chatwoot/cli のほかの issue
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
似ている issue
-
area/gateway kind/bug
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
vllm-project/aibrix#3226 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
gencrl: serial numbers that fail to parse are added to the CRL as 0 or a partial value対応中かも @sebxt が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
cloudflare/cfssl#1460 ·
メンテナーはふだん 2 日以内に返信
-
bug
難易度 1/5 1時間未満 初心者へのやさしさ 75/100
ironcore-dev/cloud-hypervisor-provider#210 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
OpenTollGate/tollgate-module-basic-go#1027 ·
メンテナーはふだん 1 日以内に返信