https://github.com/developer-dao/dev_intern
https://github.com/developer-dao/dev_intern
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/developer-dao/dev_intern
- Owner: Developer-DAO
- License: mit
- Created: 2025-02-06T09:39:41.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-06T09:45:49.000Z (about 1 year ago)
- Last Synced: 2025-02-06T10:31:01.788Z (about 1 year ago)
- Language: TypeScript
- Size: 0 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Eliza
## Edit the character files
Open `src/character.ts` to modify the default character. Uncomment and edit.
### Custom characters
To load custom characters instead:
- Use `pnpm start --characters="path/to/your/character.json"`
- Multiple character files can be loaded simultaneously
### Add clients
```
# in character.ts
clients: [Clients.TWITTER, Clients.DISCORD],
# in character.json
clients: ["twitter", "discord"]
```
## Duplicate the .env.example template
```bash
cp .env.example .env
```
\* Fill out the .env file with your own values.
### Add login credentials and keys to .env
```
DISCORD_APPLICATION_ID="discord-application-id"
DISCORD_API_TOKEN="discord-api-token"
...
OPENROUTER_API_KEY="sk-xx-xx-xxx"
...
TWITTER_USERNAME="username"
TWITTER_PASSWORD="password"
TWITTER_EMAIL="your@email.com"
```
## Install dependencies and start your agent
```bash
pnpm i && pnpm start
```
Note: this requires node to be at least version 22 when you install packages and run the agent.
## Run with Docker
### Build and run Docker Compose (For x86_64 architecture)
#### Edit the docker-compose.yaml file with your environment variables
```yaml
services:
eliza:
environment:
- OPENROUTER_API_KEY=blahdeeblahblahblah
```
#### Run the image
```bash
docker compose up
```
### Build the image with Mac M-Series or aarch64
Make sure docker is running.
```bash
# The --load flag ensures the built image is available locally
docker buildx build --platform linux/amd64 -t eliza-starter:v1 --load .
```
#### Edit the docker-compose-image.yaml file with your environment variables
```yaml
services:
eliza:
environment:
- OPENROUTER_API_KEY=blahdeeblahblahblah
```
#### Run the image
```bash
docker compose -f docker-compose-image.yaml up
```
# Deploy with Railway
[](https://railway.com/template/aW47_j)