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
Copy file name to clipboardexpand all lines: docs/docs/guides/local-development.md
+39-9
Original file line number
Diff line number
Diff line change
@@ -8,37 +8,61 @@ This guide covers setting up and working with Eliza in a development environment
8
8
9
9
## Prerequisites
10
10
11
-
Before you begin, ensure you have:
11
+
You can develop either in a **dev container** or directly on your **host machine**.
12
+
13
+
### Requirements:
12
14
13
15
```bash
14
16
# Required
15
-
Node.js 23+
16
-
pnpm
17
+
Node.js (v23+; not required if using the dev container)
18
+
pnpm (not required if using the dev container)
17
19
Git
18
20
19
-
# Optional but recommended
20
-
VS Code
21
-
Docker (for database development)
22
-
CUDA Toolkit (for GPU acceleration)
21
+
VS Code (mandatory for using the dev container or coding)
22
+
Docker (mandatory for using the dev container or database development)
23
+
CUDA Toolkit (optional, for GPU acceleration)
23
24
```
24
25
25
26
## Initial Setup
26
27
27
28
### 1. Repository Setup
28
29
30
+
Clone the repository and navigate to the project directory:
31
+
29
32
```bash
30
33
# Clone the repository
31
34
git clone https://github.com/elizaos/eliza.git
32
35
cd eliza
36
+
```
37
+
38
+
### 2. (Optional) Run Inside a Dev Container
39
+
40
+
1. Open the project directory in**VS Code**:
41
+
```bash
42
+
code .
43
+
```
44
+
45
+
2. In the bottom-right corner, you'll see a popup:
46
+
**"Reopen in Container"** – Click it.
47
+
48
+
- If you don't see the popup or miss it, press `F1`, type:
49
+
**"Reopen in Container"**, and selectit.
50
+
51
+
3. Wait for the container to initialize.
33
52
53
+
4. Open a terminal (hotkey: `Ctrl+Shift+\``) and run commands from the **container terminal** going forward.
54
+
55
+
### 3. Setup dependencies
56
+
57
+
```bash
34
58
# Install dependencies
35
59
pnpm install
36
60
37
61
# Install optional dependencies
38
62
pnpm install --include=optional sharp
39
63
```
40
64
41
-
### 2. Environment Configuration
65
+
### 4. Environment Configuration
42
66
43
67
Create your development environment file:
44
68
@@ -56,7 +80,7 @@ XAI_API_KEY= # Leave blank for local inference
56
80
XAI_MODEL=meta-llama/Llama-3.1-7b-instruct # Local model
57
81
```
58
82
59
-
### 3. Local Model Setup
83
+
### 5. Local Model Setup
60
84
61
85
For local inference without API dependencies:
62
86
@@ -106,10 +130,16 @@ pnpm run dev --characters="characters/my-character.json"
106
130
pnpm start:client
107
131
```
108
132
133
+
NOTE: If you are using devcontainer, add --host argument to client:
134
+
```
135
+
pnpm start:client --host
136
+
```
137
+
109
138
Look for the message:
110
139
` ➜ Local: http://localhost:5173/`
111
140
Click on that link or open a browser window to that location. Once you do that you should see the chat interface connect with the system and you can start interacting with your character.
0 commit comments