Development environment
Built How to run Octryx AI from source and change it.The parts of the repository
| Folder | What 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.yml | A 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
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.shThe backend venv is backend/.venv. Before you start the API by hand, bring the database up to date:
cd backend && .venv/bin/alembic heads && .venv/bin/alembic upgrade headFor 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:
backend/.venv/bin/python -m pytest backend/tests/<focused files> -q
backend/.venv/bin/python -m ruff check <touched paths>For the web app:
cd frontend/chat
npm run lint
npm test
npm run build # when the change affects bundling, screens or shared UINever 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.
