diff --git a/Makefile b/Makefile index f62543c..dfccaa8 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ init: ctlptl create registry prism-registry --port 5000 || true ctlptl create cluster kind --registry=prism-registry || true git submodule update --init - pushd deploy/chart && helm dep update && popd + pushd deploy/charts/prism-agent && helm dep update && popd touch .env build-eliza: diff --git a/README.md b/README.md index 9961d72..3d34396 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,8 @@ This repo will work on Linux/MacOS/Windows as long as you have Docker (or Docker * Make sure to enable [Kubernetes](https://docs.docker.com/desktop/features/kubernetes/) in Docker Desktop. * [Tilt](https://docs.tilt.dev/install.html) - Local Kubernetes Development Toolkit +After you have installed the required tools (or started your codespace), you are ready to start your agent! + ## Quickstart 1. **Initialize** @@ -41,14 +43,19 @@ This repo will work on Linux/MacOS/Windows as long as you have Docker (or Docker 1. **Configuration** - The absolute bare minimum you need to provide is an `OPENROUTER_API_KEY` variable. + The absolute bare minimum you need to provide is an `OPENAI_API_KEY` variable. + You can acquire one [here](https://platform.openai.com/docs/overview). - You can acquire one via [OpenRouter.ai](https://openrouter.ai/). + + We also suggest getting an `OPENROUTER_API_KEY` as well. We recommend OpenRouter because of their ability to dynamically route requests to the best model, as well as deal automatically with failovers. - Once you have a key, put it in the `.env` file: + You can acquire one via [OpenRouter.ai](https://openrouter.ai/). + + Once you have the keys, add them to the newly created `.env` file: ``` + OPENAI_API_KEY=sk-... OPENROUTER_API_KEY=sk-or-.... ``` @@ -58,6 +65,10 @@ This repo will work on Linux/MacOS/Windows as long as you have Docker (or Docker Run `tilt up` in the root directory and then visit https://localhost:10350/ +NOTE: There is currently an issue where upon first startup the `@elizaos/adapter-postgres` attempts to create the `vector` plugin when it's already available. + +Simply restart the `prism-agent` resource by clicking the refresh icon on the right side of it's name. + 3. **Talk to your Agent** After a short period, you should see all green on the containers and you should be able to access the Agent UI at http://localhost:3800. diff --git a/character.json b/character.json index d553f1e..04b66a9 100644 --- a/character.json +++ b/character.json @@ -1,5 +1,5 @@ { - "modelProvider": "openrouter", + "modelProvider": "openai", "clients": [], "plugins": [], "settings": { diff --git a/deploy/charts/prism-agent/templates/prism-agent-env.cm.yaml b/deploy/charts/prism-agent/templates/prism-agent-env.cm.yaml index a2e6902..8d06803 100644 --- a/deploy/charts/prism-agent/templates/prism-agent-env.cm.yaml +++ b/deploy/charts/prism-agent/templates/prism-agent-env.cm.yaml @@ -8,7 +8,7 @@ data: # Database and cache settings CACHE_STORE: "redis" - REDIS_URL: "redis://{{ .Release.Name }}-redis-master.{{ .Release.Namespace }}.svc.cluster.local:6379" + REDIS_URL: "redis://:{{ .Values.redis.auth.password }}@{{ .Release.Name }}-redis-master.{{ .Release.Namespace }}.svc.cluster.local:6379" POSTGRES_URL: "postgresql://postgres:{{ .Values.postgresql.auth.postgresPassword }}@{{ .Release.Name }}-postgresql.{{ .Release.Namespace }}.svc.cluster.local:5432/{{ .Values.postgresql.auth.database }}" # Feature Flags diff --git a/deploy/charts/prism-agent/values.yaml b/deploy/charts/prism-agent/values.yaml index 35c7443..e36cdbe 100644 --- a/deploy/charts/prism-agent/values.yaml +++ b/deploy/charts/prism-agent/values.yaml @@ -142,6 +142,7 @@ redis: enabled: true auth: password: prism-agent-redis-password + # PostgreSQL configuration postgresql: enabled: true