MyJackfruit

Help
Browse topics · Choosing and getting an AI

Choosing and getting an AI

← Back to My AI says it cannot reach my vault. What now?

How do I install Claude Code?

Short answer

Open Terminal, paste the line below, press Return, then type claude in a new window, press Return and sign in.
curl -fsSL https://claude.ai/install.sh | bash

Before you start

You need a Mac with macOS 13 or newer and a Claude account that includes Claude Code: Pro, Max, Ultra, Team, Enterprise or Console.

Steps
  1. Open Terminal.

    Press Command-Space bar, search for Terminal and press Return. A Terminal window opens.

    More about this

    The related answer on opening the terminal shows the other ways, and how to paste a line and press Return.

  2. Paste the install line and press Return.

    Paste this line in the Terminal window and press Return:
    curl -fsSL https://claude.ai/install.sh | bash

    More about this

    This line, from Anthropic's setup page, downloads and runs Anthropic's installer from claude.ai. It shows no progress while it downloads, so leave the window open and wait until it says Claude Code successfully installed!. If you see a web page's code instead, or the words syntax error near unexpected token, run the line again; for any other error, or if it keeps happening, follow Anthropic's fixes at https://code.claude.com/docs/en/troubleshoot-install. If that code says App unavailable in region, Claude Code is not offered in your country.

  3. Check the install in a new Terminal window.

    Press Command-N to open a new Terminal window, then paste this line and press Return:
    claude --version
    It prints a version number followed by (Claude Code).

    More about this

    A new window is needed because the window you installed from may not find claude yet. If it says command not found: claude, the folder the installer used is not yet on your PATH, the list of folders the Mac looks in for commands; the answer on this message shows what to do. The installer prints the fix under Setup notes at the end of its output; Anthropic also gives it at https://code.claude.com/docs/en/terminal-guide, under the troubleshooting for macOS. Then open a new window and try again. For a fuller check, claude doctor lists problems with suggested fixes; you do not need it.

  4. Type claude and press Return.

    In the new Terminal window, type claude and press Return. The first time, Claude Code asks you to log in and opens a browser window.

    More about this

    Follow the questions Claude Code shows in the window; Anthropic may change them. Use the arrow keys to move and Return to choose; you cannot click in the Terminal.

  5. Sign in with your Claude account in the browser.

    In the browser window, sign in with the Claude account that has your plan and follow its prompts. When Terminal shows Login successful, press Return to continue.

    More about this

    If the browser does not open, press c in Terminal to copy the sign-in address, then paste it in your browser's address bar. If the browser shows a code instead of going back, paste the code in Terminal where it says Paste code here if prompted. Claude Code keeps your sign-in in the macOS Keychain, so you sign in once. GilbApp's chat may show claude auth login for the same sign-in; you need not run it again. To leave Claude Code, type /exit and press Return or, on an empty prompt, press Control-D twice in quick succession; to sign out, type /logout in Claude Code.

Deeper

Also asked:

Can I use Claude / Claude Code? Yes. Claude Code, Anthropic's AI that runs in Terminal, is the Claude you connect to your vaults. It needs a paid Claude plan, such as Pro or Max. The steps use Claude Code, not the Claude desktop app.

Claude Code is Anthropic's AI that you run in the Terminal app on your Mac; it is the AI you connect to your vaults next. GilbApp's ▸ CONNECT AI steps start it in Terminal, not the Claude desktop app. Claude Code needs a Pro, Max, Ultra, Team, Enterprise or Console account from Anthropic; the free Claude plan does not include it. You need no Anthropic API key: you sign in with your Claude account in the browser.

Your Mac also needs at least 4 GB of memory and an internet connection. To see your macOS version, open the Apple menu and choose About This Mac; if it is older than 13, update macOS first.

Installed this way, Claude Code updates itself in the background. If you use Homebrew, Anthropic also offers it there; that copy does not update itself.

Next, for GilbPlatform: the connector, the small program that lets Claude Code reach your vaults, needs Node.js 18 or newer, a free program. To check, paste this line in Terminal and press Return; it should show v18 or higher:
node --version
If it is missing, get it from https://nodejs.org.

Anthropic makes Claude Code and sets its plans, commands and sign-in, and may change them. This answer follows Anthropic's pages, read on 9 November 2026: https://code.claude.com/docs/en/setup, https://code.claude.com/docs/en/terminal-guide, https://code.claude.com/docs/en/quickstart and https://code.claude.com/docs/en/authentication, and Apple's page on new Terminal windows: https://support.apple.com/guide/terminal/open-new-terminal-windows-and-tabs-trmlb20c7888/mac. How to leave Claude Code follows https://code.claude.com/docs/en/commands and https://code.claude.com/docs/en/interactive-mode, read on 13 November 2026.

This answer is for a Mac. The answer on installing Claude Code on Windows or Linux shows the steps for Windows and Linux.

Checked against GilbApp d529620.