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
Alternatively, you can download the latest release binary from the [releases page](https://github.com/coder/agentapi/releases).
23
25
24
-
2. Verify the installation:
26
+
1. Verify the installation:
25
27
26
28
```bash
27
29
agentapi --help
28
30
```
29
31
30
32
> 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.
31
33
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`):
33
35
34
36
```bash
35
37
agentapi server -- claude
36
38
```
37
39
38
40
> 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.
39
41
40
-
4. Send a message to the agent:
42
+
1. Send a message to the agent:
41
43
42
44
```bash
43
45
curl -X POST localhost:3284/message \
44
46
-H "Content-Type: application/json" \
45
47
-d '{"content": "Hello, agent!", "type": "user"}'
46
48
```
47
49
48
-
5. Get the conversation history:
50
+
1. Get the conversation history:
49
51
50
52
```bash
51
53
curl localhost:3284/messages
52
54
```
53
55
54
-
6. Try the chat web interface at http://localhost:3284/chat.
56
+
1. Try the chat web interface at http://localhost:3284/chat.
0 commit comments