Skip to content

Commit

Permalink
Merge pull request elizaOS#2229 from HowieDuhzit/main
Browse files Browse the repository at this point in the history
Merge my Eliza Installer with the current start.sh script
  • Loading branch information
shakkernerd authored Jan 13, 2025
2 parents d5a56c9 + a993a8c commit a11dd5a
Show file tree
Hide file tree
Showing 4 changed files with 891 additions and 54 deletions.
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

0 comments on commit a11dd5a

Please sign in to comment.