Skip to content

Development environment ​

Built How to run Octryx AI from source and change it.

The parts of the repository ​

FolderWhat it is
backend/The platform: Python 3.11+, FastAPI, SQLAlchemy, Alembic. PostgreSQL in production, SQLite in tests.
frontend/chat/The web app (chat, work, knowledge, admin): React and Vite.
clients/octryx-claude/The launcher that runs Claude Code (and, experimental, Codex) on a developer's machine. It has its own tests and venv.
deployment/The Helm chart, the local demo and the Grafana dashboard.
docker-compose.ymlA local install; docker-compose.demo.yml adds the demo. See Docker Compose and First run.
docker/Image build helpers.
plugins/Example plugins (release notes).
bots/teams/The Microsoft Teams bot, with calls.
scripts/Development and release helpers, and the merge gate.

How the parts fit together: Architecture; the HTTP API: REST API.

Before a non-trivial change, read Code style and Pull requests: they apply to people and coding agents alike.

Run it ​

bash
git clone https://github.com/octryx-ai/octryx.git && cd octryx
./dev-start.sh        # backend and frontend; logs in logs/, PIDs in pids/
./dev-stop.sh

The backend venv is backend/.venv. Before you start the API by hand, bring the database up to date:

bash
cd backend && .venv/bin/alembic heads && .venv/bin/alembic upgrade head

For a full stack with the local demo, use the compose demo from First run.

Test what you changed ​

Focused tests first, then the linter on the files you touched:

bash
backend/.venv/bin/python -m pytest backend/tests/<focused files> -q
backend/.venv/bin/python -m ruff check <touched paths>

For the web app:

bash
cd frontend/chat
npm run lint
npm test
npm run build      # when the change affects bundling, screens or shared UI

Never run a global auto-fix: the repository has a known lint backlog, and fixing it in passing hides your change.

The depth of testing follows the risk: changes to sign-in, permissions, approvals, execution, persistence or migrations need stronger checks than a cosmetic change. "Lint passed" is never enough for a change in behaviour.

Octryx AI v0.0.1-alpha · Apache 2.0 · octryx.ai