Skip to content

Commit 2beefd8

Browse files
committed
chore: improve command and renumber
1 parent e0b5a93 commit 2beefd8

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

README.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,42 +16,44 @@ You can use AgentAPI:
1616
1. Install `agentapi`:
1717

1818
```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
19+
OS=$(uname -s | tr "[:upper:]" "[:lower:]");
20+
ARCH=$(uname -m | sed "s/x86_64/amd64/;s/aarch64/arm64/");
21+
curl -fsSL "https://github.com/coder/agentapi/releases/latest/download/agentapi-${OS}-${ARCH}" -o agentapi && chmod +x agentapi
2022
```
2123

2224
Alternatively, you can download the latest release binary from the [releases page](https://github.com/coder/agentapi/releases).
2325

24-
2. Verify the installation:
26+
1. Verify the installation:
2527

2628
```bash
2729
agentapi --help
2830
```
2931

3032
> 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.
3133
32-
3. Run a Claude Code server (assumes `claude` is installed on your system and in the `PATH`):
34+
1. Run a Claude Code server (assumes `claude` is installed on your system and in the `PATH`):
3335

3436
```bash
3537
agentapi server -- claude
3638
```
3739

3840
> 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.
3941
40-
4. Send a message to the agent:
42+
1. Send a message to the agent:
4143

4244
```bash
4345
curl -X POST localhost:3284/message \
4446
-H "Content-Type: application/json" \
4547
-d '{"content": "Hello, agent!", "type": "user"}'
4648
```
4749

48-
5. Get the conversation history:
50+
1. Get the conversation history:
4951

5052
```bash
5153
curl localhost:3284/messages
5254
```
5355

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

5658
## CLI Commands
5759

0 commit comments

Comments
 (0)