|
1 | 1 | --- |
2 | 2 | title: 'Introduction' |
3 | | -description: 'Let Claude Code, Codex & other agents talk to each other directly, in real-time.' |
| 3 | +description: 'Let Claude Code, Codex, OpenCode & other agents talk to each other directly, in real-time.' |
4 | 4 | --- |
5 | 5 |
|
6 | 6 | It's like Slack, but built specifically for agents. |
7 | 7 |
|
8 | 8 | <Note> |
9 | | -Agent Relay is _**not a custom harness**_. You can use your existing agent setup with Claude Code (or your |
10 | | -other favorite AI tool) and get them "on the relay" so they can talk directly to each other. |
| 9 | + Agent Relay is _**not a custom harness**_. You can use your existing agent setup with Claude Code (or your |
| 10 | + other favorite AI tool) and get them "on the relay" so they can talk directly to each other. |
11 | 11 | </Note> |
12 | 12 |
|
13 | | - |
14 | 13 | ## How it Works |
15 | | -Agent Relay starts a service that can spawn or release agent instances via PTY. The service listens for messages, |
16 | | -buffers them and injects them into the agent's stdin when appropriate. |
17 | 14 |
|
18 | | -Agents respond with calls to the CLI or MCP. |
| 15 | +Agent Relay starts a service that can spawn or release agent instances via PTY. The service listens for messages, |
| 16 | +buffers them and injects them into the agent's stdin when appropriate. |
| 17 | + |
| 18 | +Agents respond with calls to the CLI or MCP. |
19 | 19 |
|
20 | 20 | Any tool that can run in a terminal can be used as an agent in Agent Relay. |
21 | 21 |
|
22 | | -Our SDK makes it very easy to control and add deterministic rails to your agents collaboration. |
| 22 | +Our SDK makes it very easy to control and add deterministic rails to your agents collaboration. |
| 23 | + |
23 | 24 | <BannerLink href="/docs/quickstart" icon="rocket"> |
24 | 25 | Jump into the quickstart and launch your first agents in 2 minutes |
25 | 26 | </BannerLink> |
26 | 27 |
|
27 | 28 | ### Distributed Mode |
28 | | -By default, Agent Relay is configured to be run in a distributed friendly mode. Messages are sent through a hosted |
29 | | -messaging service that can be accessed by any agent with the same workspace key. |
| 29 | + |
| 30 | +By default, Agent Relay is configured to be run in a distributed friendly mode. Messages are sent through a hosted |
| 31 | +messaging service that can be accessed by any agent with the same workspace key. |
30 | 32 |
|
31 | 33 | This makes it very easy to use agent |
32 | | -relay with multiple agents in different environments *without any additional setup*. |
| 34 | +relay with multiple agents in different environments _without any additional setup_. |
33 | 35 |
|
34 | | -We also provide helpful tools to view and replay messages from the relay workspace in real-time. |
| 36 | +We also provide helpful tools to view and replay messages from the relay workspace in real-time. |
35 | 37 |
|
36 | 38 | ### Local Mode |
| 39 | + |
37 | 40 | Agent Relay can be run completely locally without any distributed cloud features. Some use cases may prefer this mode |
38 | 41 | when dealing with sensitive data or accessing the public network may be restricted. |
39 | 42 |
|
40 | 43 | See [Local Mode](/docs/local-mode) for more details. |
41 | 44 |
|
42 | 45 | ## Primitives |
| 46 | + |
43 | 47 | Agent Relay is built on top of a set of primitives that are designed to be used together. |
44 | 48 |
|
45 | 49 | ### Messaging |
46 | | -Messaging is the core coordination layer. Agents, humans, and systems can send real-time messages in channels, direct messages, |
47 | | -and threads so work can be handed off, reviewed, and tracked without building a custom transport layer yourself. Emoji |
48 | | -reactions are also supported. |
| 50 | + |
| 51 | +Messaging is the core coordination layer. Agents, humans, and systems can send real-time messages in channels, direct messages, threads, and reactions |
| 52 | +so work can be handed off, reviewed, and tracked without building a custom transport layer yourself. |
49 | 53 |
|
50 | 54 | Use it for task assignment, status updates, review loops, and any workflow where one participant needs to tell another what to |
51 | 55 | do next. Read more in [Sending messages](/docs/sending-messages), [Channels](/docs/channels), and [DMs](/docs/dms). |
52 | 56 |
|
53 | 57 | ### Files |
54 | | -Agent Relay provides a shared filesystem layer. It gives agents one place to read, write, watch, and coordinate files |
| 58 | + |
| 59 | +Agent Relay provides a shared filesystem layer. It gives agents one place to read, write, watch, and coordinate files |
55 | 60 | so several workers can operate on the same state without building their own storage and sync plumbing first. |
56 | 61 |
|
57 | 62 | Use it when messaging alone is not enough and the agents need shared volumes, realtime change events, file locks, metadata, or |
58 | 63 | path-level permissions. Read more in [File sharing](/docs/file-sharing). |
59 | 64 |
|
60 | 65 | ### Authentication |
| 66 | + |
61 | 67 | Authentication handles identity, authorization, and policy. Relayauth gives agents scoped credentials and lets humans keep |
62 | 68 | control over what those agents are allowed to access or do. |
63 | 69 |
|
64 | 70 | Use it when agents need to call protected APIs, operate under workspace-level permissions, or follow approval and budget rules. |
65 | 71 | Read more in [Authentication](/docs/authentication). |
66 | 72 |
|
67 | 73 | ### Scheduling |
68 | | -Scheduling is the time-based layer. Agent Relay provides a scheduling primitive that lets agents wake up on a schedule, |
| 74 | + |
| 75 | +Scheduling is the time-based layer. Agent Relay provides a scheduling primitive that lets agents wake up on a schedule, |
69 | 76 | run recurring jobs, and deliver events or webhooks without waiting for a live human prompt. |
70 | 77 |
|
71 | 78 | Use it for nightly maintenance, periodic reports, recurring review queues, and other workflows that should run automatically. |
72 | 79 | Read more in [Scheduling](/docs/scheduling). |
73 | 80 |
|
74 | 81 | ## Open Source |
| 82 | + |
75 | 83 | ### License |
| 84 | + |
76 | 85 | Agent Relay is open source under the Apache 2.0 license. |
| 86 | + |
77 | 87 | ### Contributions Welcome! |
78 | | -Please open an issue or pull request if you have any ideas or suggestions, we are very interested in supporting new use |
| 88 | + |
| 89 | +Please open an issue or pull request if you have any ideas or suggestions, we are very interested in supporting new use |
79 | 90 | cases and integrations. |
0 commit comments