ODS
CLAUDE.md7k starsChanged 5 months agoApache-2.0View on GitHub
ODS is a fully local AI stack (LLM inference, chat, voice, agents, workflows, RAG, image generation, privacy tools) deployed on user hardware with a single command. It supports Linux (NVIDIA + AMD), Windows (WSL2), and macOS (Apple Silicon). The project is primarily Bash (installer/CLI), Python (dashboard-api, services), and React/Vite (dashboard UI). The repo has two layers: Within ods/: All commands run from ods/ directory unless noted. The root .pre-commit-config.yaml runs gitleaks (secret scanning), private key detection, and large file checks.…
- Reads credentials
- Installs packages
Trending
Quiet since September.about the whole repository
Who's talking about Osmantic/ODS
- @epicvibecoder.bsky.social“turn your machine into a private AI server. ODS runs LLM inference, chat, voice, agents, RAG and image gen, …”Bluesky · Jul 24, 2026 · 4 likes
- @latreon.bsky.social“Bundling Ollama, Open WebUI, and n8n together, ODS turns your Mac, PC, or Linux machine into a private …”Bluesky · Sep 18, 2026 · 1 likes
- @dailygithubtrends.bsky.social“今日のGitHubトレンド Osmantic/ODS ODS(Osmantic Deployment System)は、PC、Mac、LinuxマシンをプライベートなAIサーバーにするためのシステムです。 …”Bluesky · Aug 31, 2026 · 1 likes
- @hackobar.bsky.social“9. Osmantic ODS for Local AI Server Deployment LINK 10. LLM Agent Performance Degradation in Legacy …”Bluesky · Aug 30, 2026 · 1 likes
- web1992/github-trending“Github trending [Osmantic/ODS] 一键部署私有AI服务器”GitHub · Sep 1, 2026
The biggest 5 of 53 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 53
Talked about on GitHub and Bluesky (53 times).
On GitHub · 49
- Sep 1, 2026Github trending [Osmantic/ODS] 一键部署私有AI服务器 — web1992/github-trending0 reactions
- Aug 30, 2026codex-wave2a-ranks13-25-direct-route-reserve-20260830-01 — woahwhattheheck/commons0 reactions · 1 comment
- Aug 29, 2026[repo] Osmantic/ODS — lucas-albers-lz4/sre-ai-llm-work0 reactions · 2 comments
- Aug 19, 2026feat: integrate ODS and Magnitude with LEONES — robertosantosx2/LEONES0 reactions
- Aug 10, 2026fix(bootstrap): refuse to rm -rf a dangerous ODS_INSTALL_DIR — azilber/ODS0 reactions
44 more on GitHub
- Aug 10, 2026fix(doctor): strip leading key whitespace in load_env_safe in ods-doctor.sh — azilber/ODS0 reactions
- Aug 10, 2026fix(preflight): expand COMPOSE_FLAGS as array parameter in ods-preflight.sh — azilber/ODS0 reactions
- Aug 10, 2026fix(test): escape quotes in json payload in ods-test-functional.sh — azilber/ODS0 reactions
- Aug 10, 2026fix(resources): validate container stats payloads — azilber/ODS0 reactions
- Aug 10, 2026fix(healthcheck): support bracketed IPv6 targets — azilber/ODS0 reactions
- Aug 10, 2026fix(healthcheck): bound expected HTTP statuses — azilber/ODS0 reactions
- Aug 10, 2026fix(card): reject unusable onboarding URLs — azilber/ODS0 reactions
- Aug 10, 2026fix(release): confine compatibility contract paths — azilber/ODS0 reactions
- Aug 10, 2026fix(schema): confine mirror contract paths — azilber/ODS0 reactions
- Aug 10, 2026fix(context): validate model discovery payloads — azilber/ODS0 reactions
- Aug 10, 2026fix(extensions): reject duplicate catalog ids — azilber/ODS0 reactions
- Aug 10, 2026fix(deps): confine dependency lock paths — azilber/ODS0 reactions
- Aug 10, 2026fix(release): confine golden path files — azilber/ODS0 reactions
- Aug 10, 2026fix(config): confine generated contract paths — azilber/ODS0 reactions
- Aug 10, 2026fix(auth): require integer session TTLs — azilber/ODS0 reactions
- Aug 10, 2026fix(gpu): validate persisted state payloads — azilber/ODS0 reactions
- Aug 10, 2026fix(simulation): validate timestamp calendar dates — azilber/ODS0 reactions
- Aug 10, 2026fix(runtime): validate rendered numeric settings — azilber/ODS0 reactions
- Aug 10, 2026fix(healthcheck): reject non-finite timeouts — azilber/ODS0 reactions
- Aug 10, 2026fix(download): reject decoded artifact traversal — azilber/ODS0 reactions
- Aug 10, 2026fix(migrate): compare prerelease versions safely — azilber/ODS0 reactions
- Aug 10, 2026fix(health): emit standalone JSON output — azilber/ODS0 reactions
- Aug 10, 2026fix(privacy): validate shield statistics — azilber/ODS0 reactions
- Aug 10, 2026fix(models): validate benchmark introspection payloads — azilber/ODSsays it tested it0 reactions
- Aug 10, 2026fix(bootstrap): read effective env values — azilber/ODS0 reactions
- Aug 10, 2026fix(workflows): validate n8n list responses — azilber/ODS0 reactions
- Aug 10, 2026fix(preflight): ensure bash 3.2 compatibility in is_external_lemonade helper in ods-preflight.sh — azilber/ODS0 reactions
- Aug 10, 2026fix(uninstall): add path safety validation for INSTALL_DIR in ods-uninstall.sh — azilber/ODS0 reactions
- Aug 10, 2026fix(update): preserve docker-compose override stack resolution in ods-update.sh — azilber/ODS0 reactions
- Aug 10, 2026fix(restore): exit subshell with error code on checksum mismatch in ods-restore.sh — azilber/ODS0 reactions
- Aug 10, 2026fix(backup): pre-secure backup archive permissions before compression in ods-backup.sh — azilber/ODS0 reactions
- Aug 10, 2026fix(support-bundle): write bundle manifest JSON atomically in ods-support-bundle.sh — azilber/ODS0 reactions
- Aug 10, 2026fix(doctor): write doctor diagnostic report JSON atomically in ods-doctor.sh — azilber/ODS0 reactions
- Aug 10, 2026fix(macos): pre-apply restricted permissions on daemon PID temp file in ods-macos.sh — azilber/ODS0 reactions
- Aug 10, 2026fix(support-bundle): write bundle evidence JSON atomically in ods-support-bundle.sh — azilber/ODS0 reactions
- Aug 10, 2026fix(hermes): escape generated YAML scalars — azilber/ODS0 reactions
- Aug 10, 2026fix(api): validate model introspection payloads — azilber/ODS0 reactions
- Aug 10, 2026fix(cli): route ods rollback through ods-update.sh snapshot restore — azilber/ODS0 reactions
- Aug 10, 2026fix(host-agent): write the model-state record under ODS_DATA_DIR — azilber/ODS0 reactions
- Aug 10, 2026fix(hermes): modernize hotfix #1497 import hook to find_spec (PEP 451… — azilber/ODS0 reactions
- Aug 10, 2026fix(dashboard): route LAN and extension links to usable UI surfaces — azilber/ODS0 reactions
- Aug 10, 2026fix(installer): skip Qdrant on 64K-page arm64 hosts — azilber/ODS0 reactions
- Aug 10, 2026fix(dashboard-api): check is_symlink() before is_file() in dir_size_gb — azilber/ODS0 reactions
- Aug 10, 2026fix(dashboard-api): guard async HTTP client creation with asyncio.Lock — azilber/ODS0 reactions
On Bluesky · 4
- Jul 24, 2026turn your machine into a private AI server. ODS runs LLM inference, chat, voice, agents, RAG and image gen, all local. Open-source. What… — @epicvibecoder.bsky.social4 likes and reposts
- Sep 18, 2026Bundling Ollama, Open WebUI, and n8n together, ODS turns your Mac, PC, or Linux machine into a private local AI server.… — @latreon.bsky.social1 likes and repost
- Aug 31, 2026今日のGitHubトレンド Osmantic/ODS ODS(Osmantic Deployment System)は、PC、Mac、LinuxマシンをプライベートなAIサーバーにするためのシステムです。 OllamaやOpen… — @dailygithubtrends.bsky.social1 likes and repost · 1 reply
- Aug 30, 20269. Osmantic ODS for Local AI Server Deployment LINK 10. LLM Agent Performance Degradation in Legacy Brownfield Codebases LINK — @hackobar.bsky.social1 likes and repost
The file
We split this CLAUDE.md into the rules it gives an agent
7 rules. About 0 are common, 5 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 35
All commands run from ods/ directory unless noted.
- Very specific: line 132
No broad or silent catches: Never except Exception: pass or except Exception: return None.
- Distinctive: line 137
Tests: let assertions fail visibly: Never catch exceptions in tests to avoid failure.
- Distinctive: line 143
No premature abstraction — wait for 3+ use cases.
- Distinctive: line 148
Default to pure for business logic, validation, data mapping (same inputs → same output, no side effects).
- Distinctive: line 150
If purity adds excessive wiring, prefer a simple impure function with a comment.
- Distinctive: line 157
Don't over-engineer. For simple utilities, pragmatism > purity.
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Project Overview
ODS is a fully local AI stack (LLM inference, chat, voice, agents, workflows, RAG, image generation, privacy tools) deployed on user hardware with a single command. It supports Linux (NVIDIA + AMD), Windows (WSL2), and macOS (Apple Silicon). The project is primarily Bash (installer/CLI), Python (dashboard-api, services), and React/Vite (dashboard UI).
Repository Structure
The repo has two layers:
- Root level — outer wrapper with top-level README, install scripts (
install.sh,install.ps1), and CI workflows (.github/workflows/) ods/— the core product containing all deployable code
Within ods/:
install-core.sh— thin orchestrator that sources libs then runs phases in orderinstallers/lib/— pure function libraries (constants, logging, UI, GPU detection, tier mapping, packaging, compose selection)installers/phases/— 14 sequential phase files (01-preflightthrough13-summary, plus02b-external-services), each sourced by install-coreinstallers/macos/,installers/windows/— platform-specific installer variantsextensions/services/— 31 bundled services, each a directory withmanifest.yaml+ optionalcompose.yamland GPU overlaysextensions/library/— optional extension catalog, templates, workflows, and manifest schema used by the dashboard Extensions pagedocker-compose.base.yml— core service definitions;docker-compose.{amd,nvidia,apple}.ymlare GPU overlaysods-cli— main Bash CLI for managing the stack; keep changes narrow and followdocs/ODS_CLI_DECOMPOSITION.mdfor behavior-preserving split workconfig/— backend configs (backends/amd.json,nvidia.json, etc.), GPU database, LiteLLM config, hardware classesextensions/services/dashboard-api/— Python FastAPI backend (withrouters/,tests/)extensions/services/dashboard/— React + Vite + Tailwind frontend (src/)scripts/— operational scripts (health checks, model management, compose stack resolution, doctor, preflight)tests/— shell-based tests (tier map, contracts, smoke tests, integration)lib/— shared Bash utilities (safe-env, service-registry, progress, QR code)
Build & Development Commands
All commands run from ods/ directory unless noted.
Linting and Validation
make lint # Shell syntax check (bash -n) + Python compile check
make test # Unit/contract tests: tier map, installer, AMD/Lemonade, overlays, secrets, etc.
make smoke # Platform smoke tests (linux-amd, linux-nvidia, wsl, macos)
make simulate # Installer simulation harness
make gate # Full pre-release: lint + test + BATS + smoke + simulate
make doctor # Run diagnostic reportRunning a Single Test
bash tests/test-tier-map.sh # Tier mapping tests
bash tests/contracts/test-installer-contracts.sh # Installer contracts
bash tests/contracts/test-preflight-fixtures.sh # Preflight fixtures
bash tests/smoke/linux-nvidia.sh # Single smoke testDashboard API (Python/FastAPI)
cd extensions/services/dashboard-api
pytest tests/ # Run all dashboard-api tests
pytest tests/test_routers.py # Run a specific test fileDashboard UI (React/Vite)
cd extensions/services/dashboard
npm install
npm run dev # Dev server
npm run build # Production build
npm run lint # ESLintPre-commit Hooks
The root .pre-commit-config.yaml runs gitleaks (secret scanning), private key detection, and large file checks. Install with:
pip install pre-commit && pre-commit installCI Workflows
GitHub Actions in .github/workflows/:
- lint-shell.yml — ShellCheck on all
.shfiles - lint-python.yml — Python linting
- type-check-python.yml — Python type checking
- dashboard.yml — Dashboard build/lint
- test-linux.yml — Linux test suite + installer simulation (uploads artifacts)
- matrix-smoke.yml — Multi-distro smoke tests (11 distros)
- validate-compose.yml — Docker Compose validation
- secret-scan.yml — Secret scanning
- lint-powershell.yml — PowerShell linting for Windows installer
- security-runtime.yml — locked dependency audits, image policy, and source-sandbox contracts
About 25 further workflows run focused contract tests for specific subsystems; see .github/workflows/. The default branch requires the core checks to pass. AI-driven workflows were retired on 2026-10-03; see ods/docs/AI_WORKFLOW_GUARDRAILS.md before adding one.
Architecture Key Concepts
Installer Architecture
The installer is modular with a strict separation: installers/lib/ contains pure functions (no side effects), installers/phases/ contain sequential steps that execute on source. Every module has a standardized header (Purpose, Expects, Provides, Modder notes). The orchestrator (install-core.sh) sets INSTALL_PHASE before each phase for error reporting.
Extension System
Every service is an extension under extensions/services/<name>/. Each has a manifest.yaml defining metadata (id, port, health endpoint, container name, aliases, category, GPU backends, feature flags). Extensions with compose.yaml get auto-merged into the Docker Compose stack by scripts/resolve-compose-stack.sh. Core services (llama-server, open-webui, dashboard, dashboard-api) only have manifests — their compose lives in docker-compose.base.yml.
GPU Backend / Tier System
GPU detection (installers/lib/detection.sh) identifies hardware and maps it to a tier via installers/lib/tier-map.sh. The catalog selector (scripts/select-model.py) then picks the model and context from config/model-library.json; the tier map is the fallback when the catalog is unavailable. Backend configs in config/backends/{amd,nvidia,apple,cpu}.json describe each runtime. The compose stack is layered: docker-compose.base.yml + docker-compose.{amd,nvidia,apple}.yml.
Docker Compose Layering
The stack uses compose file merging. scripts/resolve-compose-stack.sh dynamically discovers enabled extension compose files and merges them with base + GPU overlay. Services bind to 127.0.0.1 by default for security.
Dashboard API
FastAPI app in extensions/services/dashboard-api/ with modular routers (routers/agents.py, features.py, privacy.py, setup.py, updates.py, workflows.py). Uses API key auth (security.py), GPU detection (gpu.py), and service health monitoring (helpers.py).
Code Style
- Shell: Bash with
set -euo pipefail. Useshellcheckfor linting. POSIX-compatible constructs preferred for macOS portability (avoid GNU-only date/grep). - Python: Standard formatting, consistent with existing file style. FastAPI for APIs. Pytest for tests.
- JavaScript/React: ESLint with flat config. Vite for bundling. Tailwind CSS for styling.
Design Philosophy
Priority order when principles conflict: Let It Crash > KISS > Pure Functions > SOLID.
Error Handling Rules
- No broad or silent catches. Never
except Exception: passorexcept Exception: return None. No retry/backoff loops. No fallback chains. - Narrow exceptions at I/O boundaries are fine. Health checks, network calls, and file I/O may catch specific exception types (e.g.,
asyncio.TimeoutError,aiohttp.ClientConnectorError) when each maps to a distinct, meaningful status. - Internal functions: let exceptions propagate. The default is zero error handling — errors crash visibly with a full stack trace.
- Bash:
set -euo pipefaileverywhere. Errors kill the process. Usetraphandlers for context (seeinstall-core.sh). If you must tolerate a failure, log it:some_command || warn "failed (non-fatal)". Do not add new|| trueor2>/dev/nullwithout a comment explaining why the failure is safe to ignore; older code still has many of these and is being cleaned up as it is touched. - Python boundaries: raise, don't swallow. FastAPI routers validate input and
raise HTTPException. Never returnNoneto signal an error. - Tests: let assertions fail visibly. Never catch exceptions in tests to avoid failure. A crash in a test is a signal, not a problem.
KISS
- Readable over clever. Explicit over implicit.
- One function, one job. Flatten deep nesting with early returns.
- No premature abstraction — wait for 3+ use cases.
- Thresholds: functions > 30 lines, nesting > 3 levels, files > 500 lines → consider splitting.
Pure Functions
- Default to pure for business logic, validation, data mapping (same inputs → same output, no side effects).
- Push I/O to boundaries. Follow functional core, imperative shell —
installers/lib/is the pure core,installers/phases/is the imperative shell. - If purity adds excessive wiring, prefer a simple impure function with a comment.
SOLID (apply pragmatically)
- SRP: Each module/function has one reason to change (installer phases, FastAPI routers).
- OCP: Extend via config/data (extension manifests, backend JSON files), not code modification.
- DIP: Inject dependencies via env vars (Bash) and
Depends()(FastAPI). Don't hardcode. - Don't over-engineer. For simple utilities, pragmatism > purity.
Key File Paths
- Tier mapping logic:
ods/installers/lib/tier-map.sh - GPU detection:
ods/installers/lib/detection.sh - Service manifests:
ods/extensions/services/*/manifest.yaml - Compose stack resolver:
ods/scripts/resolve-compose-stack.sh - Environment schema:
ods/.env.schema.json - Environment example:
ods/.env.example
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

