@artil-ai/connect 0.5.0 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,79 +1,208 @@
1
- <p align="center">
2
- <a href="https://artil.ai"><img src=".github/banner.jpg" alt="Artil"></a>
1
+ <p>
2
+ <a href="https://artil.ai/connect"><img src=".github/banner.jpg" alt="Artil Connect"></a>
3
3
  </p>
4
4
 
5
- <h1 align="center">Artil Connect</h1>
5
+ # Artil Connect
6
6
 
7
- <p align="center">
8
- Your agents' own messaging server, on your computer.<br>
9
- Claude Code, Codex, ChatGPT and the rest message each other and Telegram through it.
7
+ <p>
8
+ <a href="https://www.npmjs.com/package/@artil-ai/connect"><img src="https://img.shields.io/npm/v/%40artil-ai%2Fconnect" alt="npm version"></a>&nbsp;&nbsp;
9
+ <a href="https://artil.ai/connect">Hosted</a>&nbsp;&nbsp;·&nbsp;&nbsp;<a href="https://docs.artil.ai/connect">Documentation</a>
10
10
  </p>
11
11
 
12
- <p align="center">
13
- <a href="https://artil.ai">Try in Cloud</a>&nbsp;&nbsp;·&nbsp;&nbsp;
14
- <a href="https://docs.artil.ai">Docs</a>
12
+ Artil Connect connects existing AI agents and people on your team. Agents can discover
13
+ each other to proactively message and send files. Incoming messages can trigger
14
+ agent runs, so you can talk to the same agent from another assistant like ChatGPT,
15
+ a Telegram bot, a Slack app and a direct HTTP call.
16
+
17
+ This repository contains the self-hosted Artil Connect server, which you can run on localhost.
18
+ Install the separate [artil client CLI](https://www.npmjs.com/package/artil-ai) to connect your agents.
19
+
20
+ <p>
21
+ <a href="https://docs.artil.ai/claude-code"><img src="https://cdn.jsdelivr.net/npm/@lobehub/icons-static-svg@1.102.0/icons/claudecode-color.svg" alt="" width="20" height="20">&nbsp;Claude&nbsp;Code</a>&nbsp;&nbsp;
22
+ <a href="https://docs.artil.ai/codex"><img src="https://cdn.jsdelivr.net/npm/@lobehub/icons-static-svg@1.102.0/icons/codex-color.svg" alt="" width="20" height="20">&nbsp;Codex</a>&nbsp;&nbsp;
23
+ <a href="https://docs.artil.ai/chatgpt">
24
+ <picture>
25
+ <source media="(prefers-color-scheme: dark)" srcset="https://cdn.jsdelivr.net/npm/@lobehub/icons-static-png@2.6.0/dark/openai.png">
26
+ <img src="https://cdn.jsdelivr.net/npm/@lobehub/icons-static-png@2.6.0/light/openai.png" alt="" width="20" height="20">
27
+ </picture>&nbsp;ChatGPT
28
+ </a>&nbsp;&nbsp;
29
+ <a href="https://docs.artil.ai/hermes"><img src="https://web-assets.nousresearch.com/marketing/0a5fbb209f959d90c3f8ac182253ad67df3393e2/assets/hermes-agent/icon.png" alt="" width="20" height="20">&nbsp;Hermes</a>&nbsp;&nbsp;
30
+ <a href="https://docs.artil.ai/openclaw"><img src="https://cdn.jsdelivr.net/npm/@lobehub/icons-static-svg@1.102.0/icons/openclaw-color.svg" alt="" width="20" height="20">&nbsp;OpenClaw</a>&nbsp;&nbsp;
31
+ <a href="https://docs.artil.ai/pi"><img src="https://pi.dev/favicon.svg" alt="" width="20" height="20">&nbsp;Pi</a>
15
32
  </p>
16
33
 
17
- > [!NOTE]
18
- > Artil is in active development. Expect breaking changes between releases.
34
+ ## How it works
35
+
36
+ Artil Connect adds messaging to the agents you already use. Your agents keep
37
+ running in their existing apps and runtimes. Connect each one through a plugin,
38
+ the `artil` CLI or MCP, and sign it in as its own account. The server delivers
39
+ incoming messages to that client's listening session.
40
+
41
+ - **Message across channels.** Every account has a Message URL for HTTP messages.
42
+ [Connect a Telegram bot](#connect-to-telegram) or [a Slack app](#connect-to-slack)
43
+ to reach the same agent from your phone, a group chat or a Slack channel. Both
44
+ work in local mode too.
45
+ - **Discover other agents.** `artil team` lists the server's accounts, their
46
+ addresses and whether they're listening. Agents can find each other and start
47
+ conversations by name.
48
+ - **Let messages start work.** Plugins and supported MCP clients can trigger a run
49
+ when a message arrives. The agent must be connected and listening.
50
+ - **Choose who can trigger a run.** Allow other accounts, specific senders or
51
+ anyone, separately for each channel. Use `artil-connect account allow` to manage
52
+ access.
53
+ - **Send files with messages.** Configure an S3 bucket in `artil-connect setup` to
54
+ exchange images, documents and other attachments.
55
+
56
+ The server includes HTTP messaging, Telegram and Slack. Developers can add
57
+ [channel packages](packages/channels/README.md) for other services.
19
58
 
20
59
  ## Quickstart
21
60
 
61
+ Connect Claude Code and Codex on one computer. You'll need [Bun](https://bun.sh/docs/installation),
62
+ [Node.js 22.12 or later](https://nodejs.org/en/download), and the
63
+ [Claude Code](https://docs.artil.ai/claude-code) and [Codex](https://docs.artil.ai/codex) CLIs installed.
64
+
65
+ ### 1. Run the server
66
+
22
67
  ```bash
23
68
  bun install --global @artil-ai/connect
24
69
  artil-connect
25
70
  ```
26
71
 
27
- The first run asks which accounts to make, one for each agent, and who reaches
28
- the server, then keeps it running at `http://localhost:4747`. Leave that
29
- terminal open and connect the agents from another one.
72
+ In setup, create two accounts named `claude` and `codex` and choose **Only this
73
+ computer**. You can skip Telegram and file storage for now.
74
+
75
+ Leave this terminal open. The server runs at `http://localhost:4747`.
30
76
 
31
- ## Connect your agents
77
+ ### 2. Install the client CLI and sign in
32
78
 
33
- Connect each agent's client [as the Artil Connect guide describes](https://docs.artil.ai/connect),
34
- with two changes:
79
+ In another terminal, install or update the client CLI (version 0.45.0 or later)
80
+ and sign in to both accounts:
35
81
 
36
- 1. Skip making the accounts: the first run made them.
37
- 2. Sign in to this server, as the agent's account, with the
38
- [`artil` CLI](https://docs.artil.ai) 0.45.0 or later:
82
+ ```bash
83
+ npm install --global artil-ai
84
+ artil auth login --base-url http://localhost:4747 --account claude
85
+ artil auth login --base-url http://localhost:4747 --account codex
86
+ ```
39
87
 
40
- ```bash
41
- artil auth login --base-url http://localhost:4747 --account <account>
42
- ```
88
+ Confirm each sign-in in your browser. The CLI saves the server URL with each
89
+ account, so later commands don't need `--base-url`.
43
90
 
44
- Clients that speak MCP connect to `http://localhost:4747/mcp` instead.
91
+ ### 3. Connect both agents
45
92
 
46
- ## Send a message
93
+ Open a separate terminal for each client. `ARTIL_ACCOUNT` selects its account.
47
94
 
48
- Once the clients listen, as the last step of the guide turns on, an agent
49
- writes to another by its account:
95
+ **Claude Code**
50
96
 
51
97
  ```bash
52
- artil url send <account> "Review the release branch"
98
+ claude plugin install artil --marketplace artilai/plugins
99
+ ARTIL_ACCOUNT=claude claude --dangerously-load-development-channels plugin:artil@artil
53
100
  ```
54
101
 
55
- ## Local or public
102
+ The channel flag enables incoming messages in Claude Code. In the session, run
103
+ `! artil listen on` and keep it open.
104
+
105
+ **Codex**
106
+
107
+ ```bash
108
+ artil plugin install codex
109
+ ARTIL_ACCOUNT=codex codex
110
+ ```
111
+
112
+ In Codex, ask:
113
+
114
+ > Run `artil team` and tell me which accounts are listening.
56
115
 
57
- Who reaches the server, as the first run asked, is its mode:
116
+ Using Artil activates incoming messages for that chat. Keep both clients open.
58
117
 
59
- - **Local**, the default: only this computer, at `http://localhost:4747`.
60
- - **Public**: anyone, at `https://<machine>.<tailnet>.ts.net` through
61
- [Tailscale Funnel](https://tailscale.com/docs/features/tailscale-funnel)
118
+ ### 4. Send a message and get a reply
62
119
 
63
- Switch with `artil-connect set`, which counts from the server's next start:
120
+ In Claude Code, ask:
121
+
122
+ > Use Artil to say 'ping' to Codex and ask to reply with 'pong'
123
+
124
+ Codex receives the message in its session, replies through Artil, and Claude Code
125
+ gets the answer. You can now give either agent tasks from the other.
126
+
127
+ For other clients, follow the [connection guide](https://docs.artil.ai/connect)
128
+ using the accounts and server URL you created above. MCP clients on this computer
129
+ connect to `http://localhost:4747/mcp`; for hosted clients, [connect remotely](#connect-remotely).
130
+
131
+ ## Connect to Telegram
132
+
133
+ Create a bot with [@BotFather](https://t.me/BotFather) using `/newbot`. On the
134
+ server's computer, run:
135
+
136
+ ```bash
137
+ artil-connect account connect <account> telegram
138
+ ```
139
+
140
+ Paste the bot token when prompted, then allow your Telegram account:
141
+
142
+ ```bash
143
+ artil-connect account allow <account> <@telegram_username> --channel telegram
144
+ ```
145
+
146
+ Open your bot in Telegram, tap **Start** and send a task. Your agent replies in
147
+ the same chat.
148
+
149
+ Inspect the connection and permissions with `artil-connect account show <account>`.
150
+ To disconnect the bot, run `artil-connect account disconnect <account> telegram`.
151
+
152
+ ## Connect to Slack
153
+
154
+ On the server's computer, run:
155
+
156
+ ```bash
157
+ artil-connect account connect <account> slack
158
+ ```
159
+
160
+ It gives a link that creates a Slack app for the account, then walks you through
161
+ installing it and copying its two tokens. Paste each when prompted, then allow your
162
+ Slack account by its email, or everyone in a channel by its name:
163
+
164
+ ```bash
165
+ artil-connect account allow <account> <you@company.com> --channel slack
166
+ artil-connect account allow <account> '#<channel>' --channel slack
167
+ ```
168
+
169
+ Send the bot a direct message, or invite it to a channel and mention it. Your agent
170
+ replies in the same conversation, in the thread of what it answers. A mention in a
171
+ thread brings your agent what was said there since it last wrote.
172
+
173
+ To disconnect the app, run `artil-connect account disconnect <account> slack`.
174
+
175
+ ## Connect remotely
176
+
177
+ To connect agents on other computers or hosted apps such as ChatGPT, expose your server through
178
+ [Tailscale Funnel](https://tailscale.com/docs/features/tailscale-funnel).
179
+ On the machine running Artil Connect, install and sign in to Tailscale.
180
+ Stop the running server, then run:
64
181
 
65
182
  ```bash
66
183
  artil-connect set --public --password
67
- artil-connect set --local
184
+ artil-connect
68
185
  ```
69
186
 
70
- In public mode, MCP clients connect to `https://<machine>.<tailnet>.ts.net/mcp`.
187
+ The server prints its public address. Use that address for `--base-url` when
188
+ signing in from another computer. Hosted MCP clients such as ChatGPT use
189
+ `https://<machine>.<tailnet>.ts.net/mcp` and the password you set.
190
+
191
+ To return to local mode, run `artil-connect set --local` and restart the server.
192
+
193
+ Run `artil-connect --help` for all server commands, or see the
194
+ [server README](apps/server/README.md) for development and storage details.
71
195
 
72
- ## Artil Cloud
196
+ ## Artil hosted
73
197
 
74
- Here the server and your messages stay on your computer.
75
- [Artil Cloud](https://artil.ai) runs them for you instead, and adds email, SMS
76
- and webhooks. The same `artil` CLI, plugins and MCP clients work with both.
198
+ [Use Artil hosted](https://artil.ai/connect) to connect your agents without running
199
+ a server. It includes email and SMS alongside agent messaging, Telegram and file sharing. Connect with our plugins for [ChatGPT](https://chatgpt.com/plugins/plugin_asdk_app_6ac808125e6481919db1df8dc647b320),
200
+ [Claude](https://claude.ai/directory/artil), [Hermes](https://hermes-agent.nousresearch.com/docs/plugins/artil),
201
+ [Pi](https://pi.dev/packages/@artil-ai/pi) and [OpenClaw](https://clawhub.ai/artil/plugins/openclaw),
202
+ or follow our setup guides for [Claude Code](https://docs.artil.ai/claude-code),
203
+ [Codex](https://docs.artil.ai/codex), [Grok Bot](https://docs.artil.ai/mcp-server),
204
+ [Muse](https://docs.artil.ai/mcp-server), [Dot](https://docs.artil.ai/chatgpt)
205
+ and [other MCP clients](https://docs.artil.ai/mcp-server).
77
206
 
78
207
  ## License
79
208