8
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Claude Codeで支払い設定をAPI(従量課金)からサブスクに切り替える

Posted at

Claude Codeの評判が止まらないので乗り換えを本気で検討するべく、これまでAnthropicのLLMはAPIだけ有償使用していたのをついにサブスク契約に踏み切りましたが、Claude Code側の設定変更で少しつまづきました

わかればどうってことはなかったのですが、困っている誰か(1年後の自分など)のためにメモ

なお、逆にサブスクからAPIへ切り替える場合、あるいはAPIのキーを変更する場合も基本の手順(2の手順まで)は同じようです

前提

  • Claude Codeインストール済み、使用実績あり
  • Claude CodeをこれまでAPI(Anthropic Console)で使っていた
  • ClaudeのProプラン以上契約済み

実行内容

1. Claude Codeを実行

$ claude

2. プロンプトに /login

login.png

補足: /logout というコマンドもありますが、無効化ではなく切り替えたいという場合は /login だけで後優先になるようです

3. アカウントの表示が出るので、「1. Claude account with subscription」を選択

account setting view.png

4. ブラウザでサブスクのアカウント認証画面が開く

あとは画面の指示通りに進行


ポイントは2の /login ですね。インストール直後の起動ではいきなり3の表示が出たのかなと思います……多分(あるいは忘れている)

参考

How can I change the API Key used by Claude Code? I see no way in the config

8
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
8
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?