AI pair programmer · Anthropic CLI
Claude Code
One command installs Claude Code and the same toolchain the Automation team runs locally, then wires in your Anthropic API key. ~3 minutes on a fresh Mac.
Install
Two steps, ~3 minutes total.
- Download the installer.
⬇ Download claude-code-install.sh
The download is gated by TWC Google SSO, so it knows it's you. It lands in your
~/Downloadsfolder. - Open Terminal and run it.
Use the copy button on the right of the box below, then paste into Terminal and press Return:
bash "$(ls -t ~/Downloads/claude-code-install*.sh | head -1)"
The script will pause and ask for the Anthropic API key the team DM'd you. Paste it when prompted. Your typing won't show on screen, that's macOS keeping secrets out of your terminal history.
First time using Terminal? Here's the friendly version.
Terminal is a built-in Mac app, you don't install it. It comes with every Mac.
- Press
⌘+Spaceto open Spotlight (Apple's search box). - Type
Terminal, press Return. A dark window opens, that's Terminal. - Hit the copy button on the gray box above, click into Terminal so it's active, paste with
⌘V, press Return. - When it asks for your API key, paste it (your typing stays invisible on purpose), press Return.
If anything looks off, just re-run the same command. The script is safe to re-run, it skips anything that's already installed.
What it installs
The script mirrors the toolchain the Automation team uses day-to-day. Each one is a small, well-known tool we rely on.
The main event
- Claude Code (
@anthropic-ai/claude-code) — Anthropic's official CLI. This is theclaudecommand you'll actually use. Reads/edits files, runs commands, calls MCP servers.
Foundations
- Homebrew — macOS package manager. Everything below installs through it. Installed first if you don't already have it.
- Node.js (
node) — JavaScript runtime that Claude Code (and the other npm tools) need to run. - Python 3.12 (
python@3.12) — Python runtime. Most of our internal scripts and Lambda code target 3.12. - uv — Fast Python package installer/resolver. Way quicker than
pipfor spinning up venvs.
Daily-driver CLIs
- GitHub CLI (
gh) — Open PRs, browse issues, clone repos, auth in 30 seconds. Rungh auth loginafter install. - jq — Slice and filter JSON on the command line. Used in roughly every shell pipeline we have.
- AWS CLI (
awscli) — Talks to AWS. Only needed if you'll be poking at our AWS account directly. - Google Cloud SDK (
gcloud-cli) — Talks to Google Workspace / GCP. Needed for Apps Script and Sheets automation work. - cloudflared — Cloudflare Tunnel client. Used to safely expose local dev servers (and as the production tunnel for a few internal services).
Apps
- 1Password + 1Password CLI (
op) — Where we keep shared credentials. The CLI lets scripts pull a secret without you copy-pasting it.
Companion CLIs (via npm)
- clasp (
@google/clasp) — Google's Apps Script CLI. Lets you push/pull Apps Script projects from your laptop instead of editing them in the browser. - Google Workspace CLI (
@googleworkspace/cli) — Helpers for Drive/Sheets/Gmail automation. - Tray CDK CLI (
@trayio/cdk-cli) — Scaffolds custom connectors for Tray.ai. Only matters if you're going to extend Tray.
Secret
- ANTHROPIC_API_KEY — Your personal Anthropic key, written to
~/.zshrcso Claude Code picks it up in every new Terminal session. The script removes any previous line before writing the new one, so re-running won't duplicate it.
First run
When the installer finishes:
- Open a new Terminal tab.
This makes sure
ANTHROPIC_API_KEYis loaded into your shell. - Type
claudeand press Return.You're in. Ask it to do something, "summarize this folder" is a fine first prompt.
- (Later, as needed)
gh auth loginfor GitHub,aws configurefor AWS,gcloud initfor Google Cloud.These each take a couple minutes and only matter when you actually need to hit those clouds.
Safety notes
- The script is plain Bash, no sudo prompts. Read it first if you want: /claude-code-install.sh.
- Re-running is safe. Homebrew and npm skip anything already installed; the key line is dedup'd before being rewritten.
- Your API key only goes to
~/.zshrcon your laptop, nowhere else. Treat it like a password. - If you ever rotate your key, just re-run the installer and paste the new one when prompted.
Architecture
How the two-step installer flows from this site to a working Claude Code on your Mac.