Installation and Setup
With example agents
Last updated
With example agents
Last updated
Kodosumi consists of three main building blocks:
The Ray cluster to execute agentic services at scale.
The Kodosumi web interface and API services.
Agentic Services delivered through Kodosumi and executed through Ray.
v.3.12
v.2.44.1
In this step you will create a directory ./home
. This directory will host agentic services. Each agentic service runs in a custom environment which matches the specific service requirements.
Now, if you are just starting with Kodosumi, use the example apps from repo that we prepared for you.
If you didn't clone Kodosumi repo in the previous steps, now is a good time to do it in case you would like to deploy an example app provided in the repo.
Directory ./kodosumi/apps
contains various example services. Copy or link the cloned directory from ./kodosumi/apps
to ./home/apps
.
Based on deployment configuration in ./home/hymn/config.yaml
Ray will create a dedicated Python environment for the service.
In config.yaml
you define the Python package requirements and environment variables.
For this example, edit ./home/hmyn/config.yaml
and add your OPEN_API_KEY
.
For this example we will deploy the hymn creating agent. Copy the example env variables to the app and enter your OPENAI_API_KEY
.
Deploy example hymn.app
in folder ./home
. Use Ray serve deploy
to launch the service in your localhost Ray cluster.
Ensure you start serve in the same directory as Ray (./home
).
This will setup a dedicated environment with Python dependencies crewai and crewai_tools. Ray sets up this environment based on the relevant sections in ./home/hymn/config.yaml
.
Please be patient if the Ray serve applications take a while to setup, install and deploy. Follow the deployment process with the Ray dashboard at .
In our experience initial deployment takes three to four minutes.
Finally start the kodosumi components and register ray endpoints available at .
The port is defined in config.yaml
. The path /-/routes
reports available endpoints of active Ray deployments.
Ensure you start and serve from the same directory as Ray (./home
).
This command starts kodosumi spooler in the background and kodosumi panel and API in the foreground.
Visit Kodosumi at .
The default user is defined in config.py
as name=admin
and password=admin
. Feel free to change it as you wish.
If one or more Ray serve applications are not yet available when Kodosumi starts, you need to refresh the list of registered flows. Visit in the and click RECONNECT.
Launch the from the and revisit results at the .
See also the OpenAPI documentation with Swagger .