Follow Discord
Sweep 03 Nov 2026 · 22:27Z Build v2.1.318 536 read Stable v2.1.311 Latest v2.1.318 Next v2.1.318 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One change · api

quickstart changedmanaged-agents/quickstart

Nearest release: v2.1.318, published 17 hours before this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.

Recorded here
Lines+106added
Lines−24removed
From line 52 where the diff opens
First seen 14 Aug 2026 this site's first read of the page
Recorded edits50to this page, all time

## Before you begin ## Prerequisites ## Install the CLI

The whole hunk

from line 52, old and new numbered
/
lines
from line 52
5252| **Session** | A running agent instance within an environment, performing a specific task and generating outputs |
5353| **Events** | Messages exchanged between your application and the agent (user turns, tool results, status updates) |
5454 
55## Prerequisites
55## Before you begin
5656 
57* A [Claude Console account](https://platform.claude.com/)
58* An [API key](https://platform.claude.com/settings/keys) from the Console
57<Steps continues>
58 <Step title="Create a Claude Console account">
59 [Sign up](https://platform.claude.com/) for a Claude Console account, or sign in to the one you have.
60 </Step>
5961 
60## Install the CLI
62 <Step title="Choose how to authenticate">
63 Signing in with the CLI is recommended for local development.
6164 
62<Tabs>
65 Follow the steps for one of the following options.
66 </Step>
67</Steps>
68 
69**CLI**
70 
71<Steps continued>
72 <Step title="Install the CLI" stepNumber={3}>
73 <Tabs noDeepLinks>
74 <Tab title="Homebrew (macOS)">
75 ```bash
76 brew install anthropics/tap/ant
77 ```
78 </Tab>
79 
80 <Tab title="curl (Linux/WSL)">
81 For Linux environments, download the release binary directly.
82 
83 ```bash
84 VERSION=2.5.0
85 OS=$(uname -s | tr '[:upper:]' '[:lower:]')
86 case $(uname -m) in
87 x86_64) ARCH=amd64 ;;
88 aarch64) ARCH=arm64 ;;
89 esac
90 curl -fsSL "https://github.com/anthropics/anthropic-cli/releases/download/v${VERSION}/ant_${VERSION}_${OS}_${ARCH}.tar.gz" \
91 | sudo tar -xz -C /usr/local/bin ant
92 ```
93 
94 You can find all releases on the [GitHub releases page](https://github.com/anthropics/anthropic-cli/releases).
95 </Tab>
96 
97 <Tab title="go install">
98 You can also install the CLI from source using `go install`. Requires Go 1.25 or later.
99 
100 ```bash
101 go install github.com/anthropics/anthropic-cli/v2/cmd/ant@latest
102 ```
103 
104 The binary is placed in `$(go env GOPATH)/bin`. Add it to your `PATH` if it isn’t already:
105 
106 ```bash
107 export PATH="$PATH:$(go env GOPATH)/bin"
108 ```
109 </Tab>
110 </Tabs>
111 </Step>
112 
113 <Step title="Sign in" stepNumber={4}>
114 ```bash
115 ant auth login
116 ```
117 
118 Once login is completed, the SDKs and CLI will pick up your credentials automatically.
119 </Step>
120</Steps>
121 
122**API key**
123 
124<Steps continued>
125 <Step title="Create an API key" stepNumber={3}>
126 Create an [API key](https://platform.claude.com/settings/keys) in the Claude Console.
127 </Step>
128 
129 <Step title="Set the environment variable" stepNumber={4}>
130 The SDKs and CLI read your key from `ANTHROPIC_API_KEY`:
131 
132 ```bash
133 export ANTHROPIC_API_KEY="your-api-key-here"
134 ```
135 </Step>
136</Steps>
137 
138**API key**
139 
140To run the CLI examples, install the CLI:
141 
142<Tabs noDeepLinks>
63143 <Tab title="Homebrew (macOS)">
64144 ```bash
65145 brew install anthropics/tap/ant
from line 163
83163 You can find all releases on the [GitHub releases page](https://github.com/anthropics/anthropic-cli/releases).
84164 </Tab>
85165 
86 <Tab title="Go">
166 <Tab title="go install">
87167 You can also install the CLI from source using `go install`. Requires Go 1.25 or later.
88168 
89169 ```bash
from line 178
98178 </Tab>
99179</Tabs>
100180 
101Check the installation:
102 
103```bash
104ant --version
105```
106 
107181## Install the SDK
108182 
109183<Tabs>
from line 194
120194 </Tab>
121195 
122196 <Tab title="Java">
123 ```groovy Gradle
124 implementation("com.anthropic:anthropic-java:3.4.0")
125 ```
197 <Tabs>
198 <Tab title="Gradle">
199 ```kotlin
200 implementation("com.anthropic:anthropic-java:3.4.0")
201 ```
202 </Tab>
203 
204 <Tab title="Maven">
205 ```xml
206 <dependency>
207 <groupId>com.anthropic</groupId>
208 <artifactId>anthropic-java</artifactId>
209 <version>3.4.0</version>
210 </dependency>
211 ```
212 </Tab>
213 </Tabs>
126214 </Tab>
127215 
128216 <Tab title="Go">
from line 237
149237 ```
150238 </Tab>
151239</Tabs>
152 
153Set your API key as an environment variable:
154 
155```bash
156export ANTHROPIC_API_KEY="your-api-key-here"
157```
158240 
159241## Create your first session
160242 
Feedback