You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12-6Lines changed: 12 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,39 +13,45 @@ You can use AgentAPI:
13
13
14
14
## Quickstart
15
15
16
-
1. Install `agentapi` by downloading the latest release binary from the [releases page](https://github.com/coder/agentapi/releases).
16
+
1. Install `agentapi`:
17
17
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:
19
25
20
26
```bash
21
27
agentapi --help
22
28
```
23
29
24
30
> 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.
25
31
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`):
27
33
28
34
```bash
29
35
agentapi server -- claude
30
36
```
31
37
32
38
> 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.
33
39
34
-
1. Send a message to the agent:
40
+
4. Send a message to the agent:
35
41
36
42
```bash
37
43
curl -X POST localhost:3284/message \
38
44
-H "Content-Type: application/json" \
39
45
-d '{"content": "Hello, agent!", "type": "user"}'
40
46
```
41
47
42
-
1. Get the conversation history:
48
+
5. Get the conversation history:
43
49
44
50
```bash
45
51
curl localhost:3284/messages
46
52
```
47
53
48
-
1. Try the chat web interface at http://localhost:3284/chat.
54
+
6. Try the chat web interface at http://localhost:3284/chat.
0 commit comments