deus-machine 0.3.3
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 +96 -0
- package/bin/deus.js +2 -0
- package/bundles/agent-server.bundled.cjs +36481 -0
- package/bundles/server.bundled.cjs +26969 -0
- package/dist/cli.js +2477 -0
- package/package.json +51 -0
package/README.md
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
# deus-machine
|
|
2
|
+
|
|
3
|
+
Run Deus IDE from the command line. One command to install the desktop app or start a headless server for remote access.
|
|
4
|
+
|
|
5
|
+
## Quick Start
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
npx deus-machine
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
On a desktop, this installs and launches the Deus app. On a server, it starts headless mode with interactive setup.
|
|
12
|
+
|
|
13
|
+
## Install
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
# Try it (no install)
|
|
17
|
+
npx deus-machine
|
|
18
|
+
|
|
19
|
+
# Install globally
|
|
20
|
+
npm install -g deus-machine
|
|
21
|
+
deus
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## Commands
|
|
25
|
+
|
|
26
|
+
```
|
|
27
|
+
deus Auto-detect: desktop app or headless server
|
|
28
|
+
deus start Start headless server (backend + agent-server)
|
|
29
|
+
deus install Download and install the desktop app
|
|
30
|
+
deus pair Generate a pairing code for remote access
|
|
31
|
+
deus login Configure AI agent authentication
|
|
32
|
+
deus status Show server info and connected devices
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
## Headless Server
|
|
36
|
+
|
|
37
|
+
Run Deus on a remote machine and access it from anywhere via [app.deusmachine.ai](https://app.deusmachine.ai).
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
deus start
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
First run walks you through setup:
|
|
44
|
+
|
|
45
|
+
1. **AI Agent** — detects Claude Code CLI or prompts for an API key
|
|
46
|
+
2. **Remote Access** — connects to the relay and generates a pairing code with QR
|
|
47
|
+
|
|
48
|
+
After setup, it starts the backend and shows a scannable QR code to connect from your phone or another computer.
|
|
49
|
+
|
|
50
|
+
```
|
|
51
|
+
deus start --data-dir ~/my-deus # custom data directory
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
## Desktop App
|
|
55
|
+
|
|
56
|
+
On macOS, Windows, or Linux with a display:
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
deus install # download and install
|
|
60
|
+
deus install --version v0.1.5 # specific version
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
On macOS, `deus install` copies `Deus.app` into `/Applications` and launches it from there.
|
|
64
|
+
|
|
65
|
+
## Remote Pairing
|
|
66
|
+
|
|
67
|
+
Generate a new pairing code for a running server:
|
|
68
|
+
|
|
69
|
+
```bash
|
|
70
|
+
deus pair
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
Shows a QR code and a text code. Open [app.deusmachine.ai](https://app.deusmachine.ai), scan or enter the code, and you're connected.
|
|
74
|
+
|
|
75
|
+
## Docker
|
|
76
|
+
|
|
77
|
+
```dockerfile
|
|
78
|
+
FROM node:20-slim
|
|
79
|
+
RUN npm install -g deus-machine
|
|
80
|
+
EXPOSE 3000
|
|
81
|
+
CMD ["deus", "start"]
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
```bash
|
|
85
|
+
docker run -e ANTHROPIC_API_KEY=sk-ant-... -p 3000:3000 my-deus
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
## How It Works
|
|
89
|
+
|
|
90
|
+
The CLI bundles the Deus backend and agent-server. In headless mode it starts both as child processes, connects to the cloud relay for remote access, and manages the lifecycle (graceful shutdown with turn draining).
|
|
91
|
+
|
|
92
|
+
On desktop machines, it downloads the Electron app from GitHub releases and installs it to the system applications folder.
|
|
93
|
+
|
|
94
|
+
## License
|
|
95
|
+
|
|
96
|
+
MIT
|
package/bin/deus.js
ADDED