codeam-cli 1.4.55 → 1.4.57
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 +69 -13
- package/dist/index.js +35 -3
- package/package.json +25 -3
package/README.md
CHANGED
|
@@ -1,25 +1,81 @@
|
|
|
1
1
|
# codeam-cli
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[](https://www.npmjs.com/package/codeam-cli)
|
|
4
|
+
[](https://www.npmjs.com/package/codeam-cli)
|
|
5
|
+
[](https://github.com/edgardurand/codeagent-mobile/blob/main/LICENSE)
|
|
6
|
+
[](https://nodejs.org/)
|
|
4
7
|
|
|
5
|
-
|
|
8
|
+
> **Remote control [Claude Code](https://claude.ai/code) from your phone.**
|
|
9
|
+
> Send prompts, stream responses, and approve commands in real-time — from the subway, the couch, or anywhere away from your desk.
|
|
10
|
+
|
|
11
|
+
`codeam-cli` is the companion CLI for [**CodeAgent Mobile**](https://codeagent-mobile.com). It wraps Claude Code inside a pseudo-terminal, relays your mobile prompts to the agent, and streams the output back to your phone in real-time.
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
## Why does this exist?
|
|
16
|
+
|
|
17
|
+
Because sometimes your best ideas happen away from the keyboard. Maybe you're on a walk, on the train, in a meeting, or just want to keep a long-running task going while you step away. `codeam-cli` lets your AI agent keep working — and lets **you** keep shipping — without needing to be at your machine.
|
|
18
|
+
|
|
19
|
+
It works exactly like Claude Code (same terminal, same project, same files), but every prompt and every response is mirrored on your phone. You can even approve interactive selectors and confirmations from mobile.
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
## Quick Start
|
|
6
24
|
|
|
7
25
|
```bash
|
|
26
|
+
# 1. Install once
|
|
8
27
|
npm install -g codeam-cli
|
|
9
|
-
```
|
|
10
28
|
|
|
11
|
-
|
|
29
|
+
# 2. Pair your phone (generates a 6-character code)
|
|
30
|
+
codeam pair
|
|
12
31
|
|
|
13
|
-
|
|
14
|
-
codeam
|
|
15
|
-
codeam # Start Claude Code with mobile control
|
|
16
|
-
codeam sessions # List paired sessions
|
|
17
|
-
codeam status # Show connection status
|
|
18
|
-
codeam logout # Remove all sessions
|
|
32
|
+
# 3. Run Claude Code with mobile control (every time after that)
|
|
33
|
+
codeam
|
|
19
34
|
```
|
|
20
35
|
|
|
36
|
+
That's it. Open the [CodeAgent Mobile app](https://codeagent-mobile.com), enter the code, and you're controlling Claude Code from your phone.
|
|
37
|
+
|
|
38
|
+
---
|
|
39
|
+
|
|
40
|
+
## Commands
|
|
41
|
+
|
|
42
|
+
| Command | What it does |
|
|
43
|
+
|---|---|
|
|
44
|
+
| `codeam` | Start Claude Code in the current directory, with mobile control |
|
|
45
|
+
| `codeam pair` | Pair a new mobile device (6-digit code or QR) |
|
|
46
|
+
| `codeam sessions` | List all paired devices |
|
|
47
|
+
| `codeam status` | Show connection status |
|
|
48
|
+
| `codeam logout` | Remove all paired sessions |
|
|
49
|
+
|
|
50
|
+
---
|
|
51
|
+
|
|
21
52
|
## Requirements
|
|
22
53
|
|
|
23
|
-
- Node.js 18
|
|
24
|
-
- Claude Code
|
|
25
|
-
- [CodeAgent Mobile](https://
|
|
54
|
+
- **Node.js 18+**
|
|
55
|
+
- **Claude Code** — see the [official quickstart](https://code.claude.com/docs/en/quickstart)
|
|
56
|
+
- **[CodeAgent Mobile](https://codeagent-mobile.com)** app on your phone ([iOS](https://apps.apple.com/) / [Android](https://play.google.com/store/apps/details?id=com.codeagent.mobile))
|
|
57
|
+
|
|
58
|
+
---
|
|
59
|
+
|
|
60
|
+
## How it works
|
|
61
|
+
|
|
62
|
+
1. `codeam-cli` spawns Claude Code inside a Python PTY helper so Claude sees a real TTY.
|
|
63
|
+
2. Raw PTY output runs through a virtual terminal renderer, interactive selectors are detected, and TUI chrome is filtered out.
|
|
64
|
+
3. Clean output chunks are pushed to CodeAgent's backend relay.
|
|
65
|
+
4. Your phone connects to the same relay via WebSocket. Every prompt you type on mobile is sent back to the PTY as if typed on your keyboard.
|
|
66
|
+
5. Everything happens on **your machine** — your code never leaves it. The relay only forwards prompts and sanitized output.
|
|
67
|
+
|
|
68
|
+
---
|
|
69
|
+
|
|
70
|
+
## Related
|
|
71
|
+
|
|
72
|
+
- **[CodeAgent Mobile app](https://codeagent-mobile.com)** — the phone app this CLI talks to
|
|
73
|
+
- **[VS Code / Cursor / Windsurf extension](https://marketplace.visualstudio.com/items?itemName=CodeAgentMobile.codeagent-mobile)** — use inside your editor instead of the terminal
|
|
74
|
+
- **[JetBrains plugin](https://plugins.jetbrains.com/plugin/30697-codeagent-mobile)** — IntelliJ, WebStorm, PyCharm, Rider, etc.
|
|
75
|
+
- **[FAQ & Docs](https://codeagent-mobile.com/faq)**
|
|
76
|
+
|
|
77
|
+
---
|
|
78
|
+
|
|
79
|
+
## License
|
|
80
|
+
|
|
81
|
+
MIT © [Edgar Durand](https://github.com/edgardurand)
|
package/dist/index.js
CHANGED
|
@@ -116,8 +116,8 @@ var import_qrcode_terminal = __toESM(require("qrcode-terminal"));
|
|
|
116
116
|
// package.json
|
|
117
117
|
var package_default = {
|
|
118
118
|
name: "codeam-cli",
|
|
119
|
-
version: "1.4.
|
|
120
|
-
description: "Remote control Claude Code from your mobile device",
|
|
119
|
+
version: "1.4.57",
|
|
120
|
+
description: "Remote control Claude Code (and other AI coding agents) from your mobile phone. Pair your device, send prompts, stream responses in real-time, and approve commands \u2014 from anywhere.",
|
|
121
121
|
main: "dist/index.js",
|
|
122
122
|
bin: {
|
|
123
123
|
codeam: "dist/index.js"
|
|
@@ -137,12 +137,34 @@ var package_default = {
|
|
|
137
137
|
keywords: [
|
|
138
138
|
"claude",
|
|
139
139
|
"claude-code",
|
|
140
|
+
"claude-code-mobile",
|
|
140
141
|
"ai",
|
|
142
|
+
"ai-agent",
|
|
143
|
+
"ai-coding",
|
|
144
|
+
"ai-pair-programming",
|
|
141
145
|
"cli",
|
|
142
146
|
"remote-control",
|
|
147
|
+
"remote-development",
|
|
148
|
+
"mobile-ide",
|
|
149
|
+
"mobile-coding",
|
|
150
|
+
"pair-programming",
|
|
143
151
|
"codeagent",
|
|
144
|
-
"codeam"
|
|
152
|
+
"codeam",
|
|
153
|
+
"anthropic",
|
|
154
|
+
"cursor",
|
|
155
|
+
"copilot",
|
|
156
|
+
"jetbrains",
|
|
157
|
+
"vscode",
|
|
158
|
+
"mcp",
|
|
159
|
+
"code-from-phone",
|
|
160
|
+
"afk-coding",
|
|
161
|
+
"remote-pair-programming",
|
|
162
|
+
"agent-control"
|
|
145
163
|
],
|
|
164
|
+
homepage: "https://codeagent-mobile.com",
|
|
165
|
+
bugs: {
|
|
166
|
+
url: "https://github.com/edgardurand/codeagent-mobile/issues"
|
|
167
|
+
},
|
|
146
168
|
author: "Edgar Durand",
|
|
147
169
|
repository: {
|
|
148
170
|
type: "git",
|
|
@@ -2130,6 +2152,16 @@ except Exception:sys.exit(0)
|
|
|
2130
2152
|
}
|
|
2131
2153
|
break;
|
|
2132
2154
|
}
|
|
2155
|
+
case "list_models": {
|
|
2156
|
+
const models = [
|
|
2157
|
+
{ id: "claude-opus-4-7", label: "Claude Opus 4.7", description: "Most capable", family: "claude", vendor: "anthropic", isDefault: false },
|
|
2158
|
+
{ id: "claude-opus-4-6", label: "Claude Opus 4.6", description: "Top tier", family: "claude", vendor: "anthropic", isDefault: false },
|
|
2159
|
+
{ id: "claude-sonnet-4-6", label: "Claude Sonnet 4.6", description: "Balanced", family: "claude", vendor: "anthropic", isDefault: true },
|
|
2160
|
+
{ id: "claude-haiku-4-5-20251001", label: "Claude Haiku 4.5", description: "Fastest", family: "claude", vendor: "anthropic", isDefault: false }
|
|
2161
|
+
];
|
|
2162
|
+
await relay.sendResult(cmd.id, "completed", { models });
|
|
2163
|
+
break;
|
|
2164
|
+
}
|
|
2133
2165
|
}
|
|
2134
2166
|
});
|
|
2135
2167
|
ws.addHandler({
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "codeam-cli",
|
|
3
|
-
"version": "1.4.
|
|
4
|
-
"description": "Remote control Claude Code from your mobile device",
|
|
3
|
+
"version": "1.4.57",
|
|
4
|
+
"description": "Remote control Claude Code (and other AI coding agents) from your mobile phone. Pair your device, send prompts, stream responses in real-time, and approve commands — from anywhere.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": {
|
|
7
7
|
"codeam": "dist/index.js"
|
|
@@ -21,12 +21,34 @@
|
|
|
21
21
|
"keywords": [
|
|
22
22
|
"claude",
|
|
23
23
|
"claude-code",
|
|
24
|
+
"claude-code-mobile",
|
|
24
25
|
"ai",
|
|
26
|
+
"ai-agent",
|
|
27
|
+
"ai-coding",
|
|
28
|
+
"ai-pair-programming",
|
|
25
29
|
"cli",
|
|
26
30
|
"remote-control",
|
|
31
|
+
"remote-development",
|
|
32
|
+
"mobile-ide",
|
|
33
|
+
"mobile-coding",
|
|
34
|
+
"pair-programming",
|
|
27
35
|
"codeagent",
|
|
28
|
-
"codeam"
|
|
36
|
+
"codeam",
|
|
37
|
+
"anthropic",
|
|
38
|
+
"cursor",
|
|
39
|
+
"copilot",
|
|
40
|
+
"jetbrains",
|
|
41
|
+
"vscode",
|
|
42
|
+
"mcp",
|
|
43
|
+
"code-from-phone",
|
|
44
|
+
"afk-coding",
|
|
45
|
+
"remote-pair-programming",
|
|
46
|
+
"agent-control"
|
|
29
47
|
],
|
|
48
|
+
"homepage": "https://codeagent-mobile.com",
|
|
49
|
+
"bugs": {
|
|
50
|
+
"url": "https://github.com/edgardurand/codeagent-mobile/issues"
|
|
51
|
+
},
|
|
30
52
|
"author": "Edgar Durand",
|
|
31
53
|
"repository": {
|
|
32
54
|
"type": "git",
|