0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

vibe kanban利用設定

0
Last updated at Posted at 2026-04-21

症状

vibe kanbanの起動は正常に行われるが「裏のclaudeの認証が切れて」いて動かない問題に対処する

対処方法

  1. ~/.zshrc に下記を追加
    vk() {
      # APIキーがあればそれを優先(サブスク認証チェックをスキップ)
      if [ -n "$ANTHROPIC_API_KEY" ]; then
        echo "ANTHROPIC_API_KEY を使用します"
      else
        # Claude Codeのログイン状態を確認
        if ! claude -p "ping" --output-format=json >/dev/null 2>&1; then
          echo "⚠️  Claude Codeの認証が切れています。ログイン画面を起動します..."
          echo "   起動後、REPL内で /login を入力してブラウザ認証を済ませ、"
          echo "   完了したら /exit で抜けてください。"
          echo ""
    
          # 既存の無効トークンをクリアしてからREPL起動
          claude logout >/dev/null 2>&1
          claude
    
          # ログイン後の再確認
          if ! claude -p "ping" --output-format=json >/dev/null 2>&1; then
            echo "❌ ログインに失敗したか、未完了のようです。Vibe Kanbanの起動を中止します。"
            return 1
          fi
          echo "✅ ログイン成功"
        fi
      fi
    
      PORT=5555 npx vibe-kanban "$@"
    }
    
  2. ターミナル再起動
  3. vk で起動
  4. 127.0.0.1:5555 をブックマークしておけばいつも同じURLで開ける
0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?