Skip to content

Commit e0b5a93

Browse files
committed
docs: update installation instructions in README.md
1 parent 1d5555d commit e0b5a93

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

README.md

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,39 +13,45 @@ You can use AgentAPI:
1313

1414
## Quickstart
1515

16-
1. Install `agentapi` by downloading the latest release binary from the [releases page](https://github.com/coder/agentapi/releases).
16+
1. Install `agentapi`:
1717

18-
1. Verify the installation:
18+
```bash
19+
sh -c 'curl -fsSL https://github.com/coder/agentapi/releases/latest/download/agentapi-$(uname -s | tr "[:upper:]" "[:lower:]")-$(uname -m | sed "s/x86_64/amd64/;s/aarch64/arm64/") -o agentapi' && chmod +x agentapi
20+
```
21+
22+
Alternatively, you can download the latest release binary from the [releases page](https://github.com/coder/agentapi/releases).
23+
24+
2. Verify the installation:
1925

2026
```bash
2127
agentapi --help
2228
```
2329

2430
> On macOS, if you're prompted that the system was unable to verify the binary, go to `System Settings -> Privacy & Security`, click "Open Anyway", and run the command again.
2531
26-
1. Run a Claude Code server (assumes `claude` is installed on your system and in the `PATH`):
32+
3. Run a Claude Code server (assumes `claude` is installed on your system and in the `PATH`):
2733

2834
```bash
2935
agentapi server -- claude
3036
```
3137

3238
> If you're getting an error that `claude` is not in the `PATH` but you can run it from your shell, try `which claude` to get the full path and use that instead.
3339
34-
1. Send a message to the agent:
40+
4. Send a message to the agent:
3541

3642
```bash
3743
curl -X POST localhost:3284/message \
3844
-H "Content-Type: application/json" \
3945
-d '{"content": "Hello, agent!", "type": "user"}'
4046
```
4147

42-
1. Get the conversation history:
48+
5. Get the conversation history:
4349

4450
```bash
4551
curl localhost:3284/messages
4652
```
4753

48-
1. Try the chat web interface at http://localhost:3284/chat.
54+
6. Try the chat web interface at http://localhost:3284/chat.
4955

5056
## CLI Commands
5157

0 commit comments

Comments
 (0)