Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Merge my Eliza Installer with the current start.sh script #2229

Merged
merged 30 commits into from
Jan 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
fd438db
Added Setup.sh to scripts
HowieDuhzit Jan 13, 2025
d7dd9aa
Change permissions of setup.sh to make it executable
HowieDuhzit Jan 13, 2025
2a10793
Enhance setup script with improved error handling, logging, and chara…
HowieDuhzit Jan 13, 2025
b9cb7f2
Refactor setup.sh to enhance logging functionality with fallback supp…
HowieDuhzit Jan 13, 2025
5eeeca7
Enhance NVM installation process in setup.sh by downloading directly …
HowieDuhzit Jan 13, 2025
4316e6d
Refactor NVM installation in setup.sh to streamline the process. Dire…
HowieDuhzit Jan 13, 2025
14694eb
Refactor NVM installation in setup.sh to improve error handling and s…
HowieDuhzit Jan 13, 2025
de249fa
Refactor NVM installation in setup.sh to streamline the process by di…
HowieDuhzit Jan 13, 2025
5a36dfd
Refactor NVM installation in setup.sh to improve error handling and s…
HowieDuhzit Jan 13, 2025
dee052a
Remove deprecated NVM installation script and integrate NVM setup dir…
HowieDuhzit Jan 13, 2025
0917e56
Refactor NVM installation in setup.sh to enhance error handling and s…
HowieDuhzit Jan 13, 2025
e86e4b2
Remove legacy setup scripts for macOS and Windows, consolidating func…
HowieDuhzit Jan 13, 2025
e2b0cb5
Refactor Chocolatey installation in start.ps1 script to improve loggi…
HowieDuhzit Jan 13, 2025
9353ef1
Refactor logging functions in start.ps1 script to improve clarity and…
HowieDuhzit Jan 13, 2025
6f3d80d
Refactor logging and error handling in start.ps1 script to enhance us…
HowieDuhzit Jan 13, 2025
3c236cd
Enhance logging functions in start.ps1 script by implementing CmdletB…
HowieDuhzit Jan 13, 2025
8c568dc
Refactor start.ps1 script to streamline setup process and enhance use…
HowieDuhzit Jan 13, 2025
76fd999
Refactor start.ps1 script to simplify WSL and Ubuntu installation pro…
HowieDuhzit Jan 13, 2025
4c87544
Refactor start.ps1 script to replace custom logging functions with di…
HowieDuhzit Jan 13, 2025
56e54ba
Remove start.ps1 script and enhance start.sh for improved compatibili…
HowieDuhzit Jan 13, 2025
0fbe2f8
Update README.md to enhance start script documentation and clarify au…
HowieDuhzit Jan 13, 2025
f8bd99a
Update README.md and add Start Script Guide for improved user documen…
HowieDuhzit Jan 13, 2025
2bed33d
Update pnpm-lock.yaml to reflect dependency version upgrades and addi…
HowieDuhzit Jan 13, 2025
18e805a
Add NVM and Node.js setup functions to start.sh for improved environm…
HowieDuhzit Jan 13, 2025
7b09368
Update pnpm-lock.yaml
HowieDuhzit Jan 13, 2025
585ecb4
Update pnpm-lock.yaml to modify the specifier for '@0glabs/0g-ts-sdk'…
HowieDuhzit Jan 13, 2025
f7e5ef2
Refactor pnpm-lock.yaml to streamline dependencies and enhance projec…
HowieDuhzit Jan 13, 2025
e199910
Delete pnpm-lock.yaml
HowieDuhzit Jan 13, 2025
40551cc
Merge branch 'develop' into pr/HowieDuhzit/2229
shakkernerd Jan 13, 2025
a993a8c
chore: pnpm lock file
shakkernerd Jan 13, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,16 @@ Note: .env is optional. If you're planning to run multiple distinct agents, you

### Automatically Start Eliza

This will run everything to set up the project and start the bot with the default character.
The start script provides an automated way to set up and run Eliza:

```bash
sh scripts/start.sh
```

For detailed instructions on using the start script, including character management and troubleshooting, see our [Start Script Guide](./docs/docs/guides/start-script.md).

> **Note**: The start script handles all dependencies, environment setup, and character management automatically.

### Edit the character file

1. Open `packages/core/src/defaultCharacter.ts` to modify the default character. Uncomment and edit.
Expand Down
191 changes: 191 additions & 0 deletions docs/docs/guides/start-script.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,191 @@
# 🤖 Eliza Start Script

> A powerful, cross-platform launcher for your AI companion

## 🚀 Quick Start

```bash
# Linux/macOS from eliza root directory
./scripts/start.sh
```

## 💻 System Requirements

<details>
<summary><b>🐧 Linux</b></summary>

- Bash shell
- `sudo` access
- APT package manager
- 2GB free disk space
</details>

<details>
<summary><b>🍎 macOS</b></summary>

- macOS 10.15 or higher
- Command Line Tools
- Admin access
- 2GB free disk space
</details>

<details>
<summary><b>🪟 Windows (WSL2)</b></summary>

**Requirements:**
- Windows 10 version 2004+ or Windows 11
- 8GB RAM minimum
- Virtualization enabled in BIOS
- Admin access to install WSL2

**Installation Steps:**
1. Enable WSL2:
```powershell
# Run in PowerShell as Administrator
wsl --install
```

2. Install Ubuntu from Microsoft Store or:
```powershell
wsl --install -d Ubuntu
```

3. Restart your computer

4. Set up Ubuntu:
- Open Ubuntu from Start Menu
- Create username and password when prompted
- Run updates:
```bash
sudo apt update && sudo apt upgrade -y
```

Now you can follow the Linux instructions!
</details>

## ✨ Features

| Feature | Description |
|---------|-------------|
| 🔍 OS Detection | Automatically adapts to your platform |
| 🛠️ Zero Config | Installs all dependencies automatically |
| 📦 Node.js | Manages versions and packages seamlessly |
| 🎭 Characters | Full character management interface |
| 🔄 Updates | One-click updates and version management |
| ⚙️ Environment | Guided configuration setup |

## 🎮 Usage

### Command Line Options
```bash
start.sh [-v|--verbose] [--skip-nvm]
```

| Option | Description |
|--------|-------------|
| `-v, --verbose` | Show detailed progress |
| `--skip-nvm` | Use system Node.js |
### 🔄 Starting and Updating Eliza

| Action | Description |
|--------|-------------|
| Start | Launch current version |
| Update | Install latest updates |
| Reinstall | Fresh installation |

### 🎭 Character Management

<details>
<summary><b>Creating New Characters</b></summary>

1. Select `Create New`
2. Enter character name
3. Customize in editor
4. Save & deploy
</details>

<details>
<summary><b>Using Existing Characters</b></summary>

1. Select `Use Existing`
2. Choose characters:
- Select each: `X`
- Select All: `Ctrl+A`
- Confirm: `ENTER`
</details>

<details>
<summary><b>Character Actions</b></summary>

**Single Character:**
- ▶️ Run
- ✏️ Edit
- 🗑️ Delete

**Multiple Characters:**
- ▶️ Run All
- 🗑️ Delete All
</details>

### ⚙️ Configuration



## 🛟 Troubleshooting

### Common Solutions

<details>
<summary><b>🔒 Permission Issues</b></summary>

```bash
# Linux/macOS
sudo chmod +x scripts/start.sh

# Windows
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
```
</details>

<details>
<summary><b>📦 Node.js Issues</b></summary>

- Required: Node.js 22+
- Use `--skip-nvm` for system Node
- Check PATH configuration
</details>

<details>
<summary><b>🔧 Package Manager Issues</b></summary>

- Linux: `sudo apt update`
- macOS: `/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"`
- Windows: Run as Administrator
</details>

### 🚨 Common Errors


| `characters not found` | Check working directory |

## 📝 Notes

- Temporary files: `/tmp/eliza_*`
- Config location: `./config`
- Characters: `./characters/*.json`

## 🆘 Support

Need help? Try these steps:

1. Run with verbose logging:
```bash
./scripts/start.sh -v
```
2. Check console output
3. [Open an issue](https://github.com/elizaOS/eliza/issues)

---
<div align="center">
<i>Made with ❤️ by the ai16z team</i>
</div>
2 changes: 1 addition & 1 deletion pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading