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

Feature/slim #1

Open
wants to merge 15 commits into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
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
88 changes: 88 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
# Required environment variables
#DISCORD_APPLICATION_ID=
#DISCORD_API_TOKEN= # Bot token
#OPENAI_API_KEY=sk-* # OpenAI API key, starting with sk-
#REDPILL_API_KEY= # REDPILL API Key
#GROK_API_KEY= # GROK API Key
#GROQ_API_KEY=gsk_*
#OPENROUTER_API_KEY=
#GOOGLE_GENERATIVE_AI_API_KEY= # Gemini API key

#ELEVENLABS_XI_API_KEY= # API key from elevenlabs

# ELEVENLABS SETTINGS
#ELEVENLABS_MODEL_ID=eleven_multilingual_v2
#ELEVENLABS_VOICE_ID=21m00Tcm4TlvDq8ikWAM
#ELEVENLABS_VOICE_STABILITY=0.5
#ELEVENLABS_VOICE_SIMILARITY_BOOST=0.9
#ELEVENLABS_VOICE_STYLE=0.66
#ELEVENLABS_VOICE_USE_SPEAKER_BOOST=false
#ELEVENLABS_OPTIMIZE_STREAMING_LATENCY=4
#ELEVENLABS_OUTPUT_FORMAT=pcm_16000

#TWITTER_DRY_RUN=false
#TWITTER_USERNAME= # Account username
#TWITTER_PASSWORD= # Account password
#TWITTER_EMAIL= # Account email
#TWITTER_COOKIES= # Account cookies

#X_SERVER_URL=
#XAI_API_KEY=
#XAI_MODEL=

#POST INTERVAL RANDOM MIN-MAX MINUTES
POST_INTERVAL_MIN= #90 #Default
POST_INTERVAL_MAX= #180 #Default
#USE IMAGE GEN
IMAGE_GEN= #TRUE

#Leave blank to use local embeddings
#USE_OPENAI_EMBEDDING= #FALSE

#OpenRouter (Use one model for everything or set individual for small, medium, large tasks)
#leave blank to use defaults hermes 70b for small tasks & 405b for medium/large tasks
#OPENROUTER_MODEL=
#SMALL_OPENROUTER_MODEL=
MEDIUM_OLLAMA_MODEL=
LARGE_OLLAMA_MODEL=
#Set to Use for New OLLAMA provider
#OLLAMA_SERVER_URL= #Leave blank for default localhost:11434
OLLAMA_MODEL=temp1
OLLAMA_EMBEDDING_MODEL= #default mxbai-embed-large
#To use custom model types for different tasks set these
SMALL_OLLAMA_MODEL= #default llama3.2
MEDIUM_OLLAMA_MODEL= #default herems3
LARGE_OLLAMA_MODEL= #default hermes3:70b

# For asking Claude stuff
#ANTHROPIC_API_KEY=

# Heurist API (Get API Key at https://heurist.ai/dev-access)
#HEURIST_API_KEY=
#SMALL_HEURIST_LANGUAGE_MODEL=
#MEDIUM_HEURIST_LANGUAGE_MODEL=
#LARGE_HEURIST_LANGUAGE_MODEL=
#HEURIST_IMAGE_MODEL=

#WALLET_PRIVATE_KEY=EXAMPLE_WALLET_PRIVATE_KEY
#WALLET_PUBLIC_KEY=EXAMPLE_WALLET_PUBLIC_KEY

#BIRDEYE_API_KEY=

#SOL_ADDRESS=So11111111111111111111111111111111111111112
#SLIPPAGE=1
#BASE_MINT=So11111111111111111111111111111111111111112
#RPC_URL=https://api.mainnet-beta.solana.com
#HELIUS_API_KEY=


## Telegram
#TELEGRAM_BOT_TOKEN=

#TOGETHER_API_KEY=
SERVER_PORT=3000
VERBOSE=true
NODE_ENV=dev
# Starknet
#STARKNET_ADDRESS=
#STARKNET_PRIVATE_KEY=
50 changes: 49 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,52 @@
# Eliza 🤖
# TINA = The introspector is not Eliza 🤖

Packaging of eliza for the cloud
```
git clone https://github.com/meta-introspector/cloud-deployment-eliza/
cd cloud-deployment-eliza

nvm install --lts
nvm use --lts
pnpm install
pnpm build
pnpm rebuild
docker run -d -p 9411:9411 openzipkin/zipkin

```

Run just this
`scripts/start.sh` does the first install
`scripts/just_start.sh` then you can run this
`agent/run.sh` afterwards you can just run this to debug the agent

```
For my client I use, not the baked in one, but this one:
```
git clone https://github.com/meta-introspector/eliza-starter
pnpm start --characters="characters/eliza.character.json"
```

the --characters="characters/eliza.character.json" is hard coded on the client and must match the server version

```
nvm install --lts
nvm use --lts
rm -rf node_modules/
rm -rf dist/
pnpm i && pnpm build && pnpm start
pnpm rebuild

docker run -d -p 9411:9411 openzipkin/zipkin

pnpm start
```

Run just this
`scripts/start.sh` does the first install
`scripts/just_start.sh` then you can run this
`agent/run.sh` afterwards you can just run this to debug the agent



<div align="center">
<img src="./docs/static/img/eliza_banner.jpg" alt="Eliza Banner" width="100%" />
37 changes: 22 additions & 15 deletions agent/package.json
Original file line number Diff line number Diff line change
@@ -4,7 +4,8 @@
"main": "src/index.ts",
"type": "module",
"scripts": {
"start": "node --loader ts-node/esm src/index.ts",
"skip": "--trace-deprecation ,node.async_hooks,,,node.threadpoolwork.sync,node.threadpoolwork.async,node.dns.native,,node.promises.rejections,,node.module_timer,node.perf,node.perf.usertiming,node.perf.timerify --trace-warnings",
"start": "node --trace-event-categories node,node.bootstrap,node.console,node.vm.script,v8,node.http,node.net.native,node.environment,node.fs.sync,node.fs_dir.sync,node.fs.async,node.fs_dir.async --loader ts-node/esm src/index.ts",
"dev": "node --loader ts-node/esm src/index.ts",
"check-types": "tsc --noEmit",
"test": "jest"
@@ -26,39 +27,45 @@
"@elizaos/client-discord": "workspace:*",
"@elizaos/client-farcaster": "workspace:*",
"@elizaos/client-lens": "workspace:*",
"@elizaos/client-slack": "workspace:*",
"@elizaos/client-telegram": "workspace:*",
"@elizaos/client-twitter": "workspace:*",
"@elizaos/client-slack": "workspace:*",
"@elizaos/core": "workspace:*",
"@elizaos/plugin-0g": "workspace:*",
"@elizaos/plugin-3d-generation": "workspace:*",
"@elizaos/plugin-abstract": "workspace:*",
"@elizaos/plugin-aptos": "workspace:*",
"@elizaos/plugin-avalanche": "workspace:*",
"@elizaos/plugin-bootstrap": "workspace:*",
"@elizaos/plugin-intiface": "workspace:*",
"@elizaos/plugin-coinbase": "workspace:*",
"@elizaos/plugin-conflux": "workspace:*",
"@elizaos/plugin-cronoszkevm": "workspace:*",
"@elizaos/plugin-evm": "workspace:*",
"@elizaos/plugin-flow": "workspace:*",
"@elizaos/plugin-fuel": "workspace:*",
"@elizaos/plugin-gitbook": "workspace:*",
"@elizaos/plugin-story": "workspace:*",
"@elizaos/plugin-goat": "workspace:*",
"@elizaos/plugin-icp": "workspace:*",
"@elizaos/plugin-image-generation": "workspace:*",
"@elizaos/plugin-nft-generation": "workspace:*",
"@elizaos/plugin-intiface": "workspace:*",
"@elizaos/plugin-multiversx": "workspace:*",
"@elizaos/plugin-near": "workspace:*",
"@elizaos/plugin-node": "workspace:*",
"@elizaos/plugin-solana": "workspace:*",
"@elizaos/plugin-starknet": "workspace:*",
"@elizaos/plugin-ton": "workspace:*",
"@elizaos/plugin-sui": "workspace:*",
"@elizaos/plugin-story": "workspace:*",
"@elizaos/plugin-tee": "workspace:*",
"@elizaos/plugin-multiversx": "workspace:*",
"@elizaos/plugin-near": "workspace:*",
"@elizaos/plugin-zksync-era": "workspace:*",
"@elizaos/plugin-twitter": "workspace:*",
"@elizaos/plugin-cronoszkevm": "workspace:*",
"@elizaos/plugin-3d-generation": "workspace:*",
"@elizaos/plugin-fuel": "workspace:*",
"@elizaos/plugin-avalanche": "workspace:*",
"@opentelemetry/api": "^1.9.0",
"@opentelemetry/auto-instrumentations-node": "^0.55.0",
"@opentelemetry/exporter-zipkin": "^1.30.0",
"@opentelemetry/instrumentation-express": "^0.47.0",
"@opentelemetry/instrumentation-fetch": "^0.57.0",
"@opentelemetry/instrumentation-fs": "^0.19.0",
"@opentelemetry/instrumentation-http": "^0.57.0",
"@opentelemetry/instrumentation-pg": "^0.50.0",
"@opentelemetry/sdk-metrics": "^1.30.0",
"@opentelemetry/sdk-node": "^0.57.0",
"@opentelemetry/sdk-trace-node": "^1.30.0",
"readline": "1.3.0",
"ws": "8.18.0",
"yargs": "17.7.2"
3 changes: 3 additions & 0 deletions agent/run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash
# --trace-event-categories node,node.bootstrap,node.console,node.vm.script,v8,node.http,node.net.native,node.environment
node --enable-source-maps --heap-prof --expose-gc --prof --cpu-prof --loader ts-node/esm src/index.ts "--isRoot" "--characters=characters/eliza.character.json"
Loading
Loading