llm-dev-kit
Health Warn
- License — License: MIT
- Description — Repository has a description
- Active repo — Last push 0 days ago
- Low visibility — Only 5 GitHub stars
Code Pass
- Code scan — Scanned 12 files during light audit, no dangerous patterns found
Permissions Pass
- Permissions — No dangerous permissions requested
No AI report is available for this listing yet.
Local-first, self-hosted LLM workspace: Next.js chat, RAG over your PDFs, Ollama offline or cloud models via LiteLLM, MCP tools, and a plugin core. Runs entirely on your machine with Docker Compose.
LLM Dev Kit
A private, local-first AI workspace, built security-first, to learn the whole AI stack piece by piece.
Ask questions in plain language and get answers grounded in your own PDFs,
from models that run on your machine. Bring in your team with accounts, roles
and single sign-on. Connect your scripts, notebooks and agents through an
OpenAI-compatible API and MCP.
Quick start · Tour · Contribute · The AI stack · Features · Use it from code · Architecture · Docs
Why this exists
I'm building LLM Dev Kit to learn every layer of a real AI system, one piece at
a time, in public: local inference, embeddings, chunking, vector search,
retrieval-augmented generation, an API, MCP, authentication and operations.
Each piece is built the way production software should be: services that
check every caller, typed interfaces with contract tests, and releases that
only ship after the whole stack passes CI.
It is not trying to replace the chat tools you already know. It is a working
system you can read end to end, and a place to learn how the parts of an AI
stack fit together. If that is what you want too, come and build it with me.
— Sameer Alam
Why LLM Dev Kit
- Private by default. Chat and embeddings run on Ollama
on your own machine. Nothing leaves it unless you choose a cloud model. - Answers you can check. Upload PDFs and every answer is grounded in the
passages it retrieves from them. The model is told to answer only from those
passages, and to say so when they do not cover the question. - Ready for a team. Accounts, roles (admin, user, viewer), personal API
keys, optional Keycloak single sign-on, and an admin console for people,
keys, documents and service health. - Open at every seam. An OpenAI-compatible
/v1API works with any OpenAI
SDK and with LangChain. An MCP server plugs into Claude Desktop and other
agents. Model providers, the vector store, loaders and chunkers are plugins
you can swap.
How it's different
- MIT licensed and fully rebrandable. Use it, change it and ship it under
your own name. There is no paid tier and nothing is held back. - Security is part of the design. Services verify a short-lived signed
token on every call instead of trusting the gateway. API keys are stored as
hashes and shown once. Only the gateway is published, on127.0.0.1by
default, and the first admin needs a one-time setup code. - Grounded answers you can inspect.
/api/rag/chatreturns the passages
an answer was built from, so you can check it, and cached answers are
dropped whenever the documents change. - Swappable at every layer. Model providers, embedders, the vector store,
loaders, chunkers, authentication and MCP tools are plugins behind typed
interfaces, and every interface ships a contract test suite.
Quick start
You need Docker with Compose v2 and
Ollama running on the host.
1. Pull the models (once, about 5 GB):
ollama pull llama3.1
ollama pull nomic-embed-text
2. Configure and start the stack:
git clone https://github.com/sameeralam3127/llm-dev-kit.git
cd llm-dev-kit
cp .env.example .env
echo "AUTH_SECRET=$(openssl rand -base64 32)" >> .env
docker compose up --build
3. Open http://localhost:8080 and create the admin account. On first start
the web container prints a setup code (docker compose logs web). Sign up with
it in the "Setup code" field and that account becomes the admin. Accounts made
without it are plain users.
4. Add a document and ask about it. As the admin, open the account menu
(bottom left) → Admin → Documents and drop a PDF onto the page. From a
script, create an API key under account menu → API keys, then:
KEY=sk-ldk-... # the key you just created
curl -H "Authorization: Bearer $KEY" -F "[email protected]" \
http://localhost:8080/api/rag/ingest/pdf
# {"chunks":12}
Ask a question about the document in the chat. The answer comes from the
handbook, generated by llama3.1 on your machine.
[!TIP]
Everything listens on127.0.0.1:8080only, so nothing is exposed until you
decide. docs/usage.md covers inviting a team on your
network, and docs/setup.md walks through every step in more
detail.
A quick tour
Start anywhere. Suggested prompts, or just type. |
Find anything. ⌘K searches every chat, titles and messages. |
Keys for your tools. Personal API keys, shown once and revocable. |
Sign in your way. Email and password, GitHub, or your Keycloak. |
The admin console
Admins get a console of their own at /admin, separate from the chat.
Overview. Usage at a glance, questions per day, and every service's status. |
People and roles. Search, filter and change roles; one admin is always kept. |
Documents. Drop in PDFs, watch the index, clear the cache or the index. |
Health and settings. Each service, the configuration from |
Contributing — learn with us
LLM Dev Kit is built in the open, and help of every size is welcome:
- New to AI engineering? You are exactly who this is for. Issues labelled
good first issue
are small and self-contained, and say which files to read and how you know
you are done. - Want to learn one concept well? Issues labelled
learning opportunity
each teach a specific idea, such as a new document loader or retrieval
evaluation. - Most wanted: tests, documentation, new loaders and plugins, and the
planned rows in the table below.
Read CONTRIBUTING.md to set up, run the checks and
open a pull request, and comment on an issue to have it assigned to you.
Found a security problem? Please report it privately, as the
security policy describes, not in a public issue.
Everyone taking part follows the code of conduct.
The AI stack, piece by piece
Each layer of the system, where it lives, and how far along it is.
✅ built · 🚧 in progress (on the v3 branch) · 🧭 planned
| Layer | Where it lives | Status |
|---|---|---|
| Local inference | Ollama, through services/plugins/ollama |
✅ |
| Model routing | services/llm_service: local models, plus cloud models through LiteLLM |
✅ |
| Embeddings | services/plugins/ollama (nomic-embed-text by default) |
✅ |
| Document loading | services/plugins/loader_pdf: PDF text, with page, text and time limits |
✅ |
| Chunking | services/plugins/chunker_fixed: overlapping fixed-size windows |
✅ |
| Vector store | services/plugins/chroma |
✅ |
| Retrieval-augmented generation | services/rag_service: retrieve, build a grounded prompt, answer with sources |
✅ |
| Answer caching | services/rag_service: Redis, dropped whenever the documents change |
✅ |
| OpenAI-compatible API | /v1 in services/rag_service |
✅ |
| MCP | services/mcp_service, with tools in services/plugins/tools |
✅ |
| Authentication and roles | web/src/server/identity issues tokens; services/plugins/auth verifies them |
✅ |
| Observability | services/core (ldk_core.observability): structured logs and one request id across services |
✅ |
| Postgres and pgvector, workspaces | services/core_api |
🚧 |
| Hybrid search (vector and full text, fused) | services/core_api |
🚧 |
| Background ingestion queue | services/ingest_worker |
🚧 |
| Model gateway and sovereign mode | services/model_gateway: the only path to a model, with an audit trail |
🚧 |
| Reranking | — | 🧭 issue |
| Evaluation of retrieval and citations | — | 🧭 issue |
| LLM tracing | — | 🧭 issue |
| Guardrails and prompt-injection defence | — | 🧭 issue |
| Secure MCP tool permissions | — | 🧭 issue |
| Layout-aware parsing and OCR | — | 🧭 issue |
| Alternative serving (vLLM, llama.cpp) | — | 🧭 issue |
| Structured output | — | 🧭 |
| Agents | — | 🧭 |
| Fine-tuning | — | 🧭 |
Features
Chat
- Streaming answers with a stop button. A partial answer is saved even if
you stop it or the model host fails mid-sentence. - Edit and regenerate. Editing a message rewinds the conversation to that
point. Earlier answers stay one click away through‹ 2/3 ›. - Organised history. Chats grouped by date, folders, pinning, and a sidebar
that collapses to an icon rail. - Keyboard first. ⌘K palette, ⇧⌘O new chat,
⌘B sidebar. - Readable output. GitHub-flavoured Markdown, syntax highlighting loaded on
demand, per-block copy. - Sharing. Publish a chat as a read-only link and revoke it at any time.
- Accessible. Light, dark and system themes with WCAG AA contrast, full
keyboard support, and motion that stops when your system asks for reduced
motion.
Knowledge
- Retrieval-augmented answers over your PDFs: text is chunked, embedded
locally withnomic-embed-textand stored in ChromaDB. - Any model. Local Ollama models by default. Add a key in
.envandopenai/…,gemini/…andanthropic/…models appear in the model picker,
through LiteLLM. - Cached answers. Repeated questions to
/api/rag/chatcome back from Redis
instantly.
Identity and access
- Every API call is authenticated. The browser uses its session; scripts
and agents use personal API keys (sk-ldk-…, stored hashed, shown once). - Roles:
viewerchats,useralso adds documents,adminalso manages
people, keys and documents. - Admin console at
/admin, separate from the chat: an overview with usage
and service status, users and roles, every API key with revoke, document
upload and index controls, and health with the instance's configuration. - Single sign-on:
docker compose --profile sso upadds Keycloak with a
ready-made realm, served at/sso. - No account takeover by email. An external sign-in whose email already has
an account is refused, not silently linked. - Short-lived credentials. The services verify 5-minute signed tokens
themselves, so the gateway is never trusted blindly. - Safe first run. The first admin needs a one-time setup code from the web
log, so a stranger who reaches a new instance first cannot claim it. - Hardened by default. Password sign-in and API key checks are rate
limited, pages carry a strict Content-Security-Policy, uploads have page,
text and time limits, and model options are bounded for every caller.
Operations
- One command, one port.
docker compose upstarts everything behind an
Nginx gateway on127.0.0.1:8080; no other port is published. - Scales out. rag-service runs two replicas by default; add more with
--scaleand the gateway picks them up without a restart. - Observable. Structured JSON logs, one request id that follows a call
across every service, and one error format everywhere. - Gated, versioned releases. CI lints, type-checks, tests, starts every
image and smoke-tests the whole stack before anything is published. Versions
and the changelog come from Conventional Commits.
Use it from code
The /v1 API speaks the OpenAI protocol, so existing clients work by changing
two settings. Every answer is grounded in your documents.
Python (OpenAI SDK)
from openai import OpenAI
client = OpenAI(base_url="http://localhost:8080/v1", api_key="sk-ldk-...")
reply = client.chat.completions.create(
model="llama3.1",
messages=[{"role": "user", "content": "When does BLUEFIN-42 ship?"}],
)
print(reply.choices[0].message.content)
LangChain
from langchain_openai import ChatOpenAI
llm = ChatOpenAI(base_url="http://localhost:8080/v1", api_key="sk-ldk-...", model="llama3.1")
print(llm.invoke("Summarise the onboarding handbook").content)
curl, with streaming
curl -N http://localhost:8080/v1/chat/completions \
-H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \
-d '{"model":"llama3.1","stream":true,"messages":[{"role":"user","content":"Hello"}]}'
MCP (Claude Desktop and other agents). Add mcp.json to your
client with LDK_API_KEY set to an API key. It provides ask_llm_dev_kit andlist_models.
All paths go through the gateway at http://localhost:8080. Everything except
the health checks needs Authorization: Bearer <api key>.
| Method and path | Role | What it does |
|---|---|---|
GET /api/rag/health, GET /api/llm/health |
none | Liveness; llm-service also reports whether Ollama is ready |
GET /v1/models |
viewer | Models, in OpenAI format |
POST /v1/chat/completions |
viewer | Grounded chat, streaming or not, in OpenAI format |
POST /api/rag/chat |
viewer | Grounded chat with its sources; "api_key" in the body uses your own cloud key for that call |
POST /api/rag/chat/stream |
viewer | The same, streamed as NDJSON (meta, delta, done) |
GET /api/llm/models |
viewer | Local and configured cloud models |
POST /api/llm/generate, POST /api/llm/generate/stream |
viewer | Generate from a prompt; the only tunables are temperature (0 to 2) and max_tokens (1 to 4096) |
POST /api/rag/ingest/pdf |
user | Add a PDF (multipart field file, up to 64 MB, 2,000 pages and 4 million characters of text) |
GET /api/rag/documents/stats, POST /api/rag/documents/clear |
admin | Count or clear the index |
GET /api/rag/cache/stats, POST /api/rag/cache/clear |
admin | Inspect or clear cached answers |
Errors share one shape, {"error": {"code": "...", "message": "..."}}, with
the status implied by the code: invalid_request 400, unauthorized 401,forbidden 403, not_found 404, conflict 409, rate_limited 429,internal 500, upstream_error 502, upstream_unavailable 503, timeout
504. Every response carries an X-Request-ID; send your own to find a call in
the logs.
How it works

flowchart LR
B[Browser] --> GW
S[Scripts and SDKs] -->|API key| GW
A[MCP agents] --> MCP[mcp-service]
GW[Nginx gateway<br/>127.0.0.1:8080] --> WEB[web<br/>Next.js app and identity]
GW -->|/v1, /api/rag| RAG[rag-service ×2<br/>retrieval and chat]
GW -->|/api/llm| LLM[llm-service<br/>model routing]
WEB -->|user's token| RAG
WEB --> SQ[(SQLite<br/>users, chats, keys, audit)]
MCP -->|API key| RAG
RAG -->|caller's token| LLM
RAG -.->|verify tokens| WEB
LLM -.->|verify tokens| WEB
RAG --> CH[(ChromaDB)]
RAG --> RD[(Redis)]
LLM --> OL[Ollama on the host]
LLM -.->|optional| CL[Cloud models]
| Service | What it does |
|---|---|
nginx |
The gateway and the only published port. Routes to the app and APIs and balances across rag-service replicas. |
web |
The Next.js chat app. It is also the identity service: it signs short-lived tokens and publishes their keys at /.well-known/jwks.json. Users, chats, API keys and the audit log live in its SQLite database. |
rag-service |
Retrieval, grounded chat, the /v1 API, PDF ingestion and the answer cache. Two replicas by default. |
llm-service |
One interface to every model: Ollama locally, cloud providers through LiteLLM. |
mcp |
An MCP server over stdio for agents (profile mcp). |
redis, chroma |
Cache and vector store, reachable only inside the Compose network. |
keycloak |
Optional single sign-on (profile sso). |
The Python services never trust the gateway: each verifies the caller's token
itself. docs/ARCHITECTURE.md has the request flows and the Docker
build strategy.
Where it is heading: v3
Version 2.0.0 (the "v3" plan, planned for February 2027) replaces the three
separate stores with Postgres, scopes every document to a workspace, and makes
one service the only path to a model. The services are built and tested in the
repository, but Compose does not start them yet.

flowchart LR
B[Browser] --> E[Edge proxy<br/>only published port]
SDK[Scripts and SDKs<br/>workspace API key] --> E
E --> W[web<br/>Next.js and identity]
E --> C[core-api<br/>auth, workspaces, chat, retrieval]
W -->|signed identity| C
C --> PG[(Postgres 16 + pgvector)]
C -->|model request| G[model-gateway]
I[ingest-worker] -->|claim jobs| PG
I -->|embeddings| G
G -->|audit event| PG
G --> O[Ollama]
G -.->|refused in sovereign mode| CL[Cloud models]
| Change from today | Why |
|---|---|
| Postgres with pgvector replaces SQLite, Chroma and Redis | One system of record, and retrieval is filtered by workspace in SQL |
model-gateway is the only caller of a model |
Sovereign mode refuses cloud models before any prompt leaves the network, and every permitted call is audited |
ingest-worker claims jobs from a Postgres queue |
Large PDFs no longer block a web request |
The plan, its milestones and its decisions are in
docs/v3/ROADMAP.md.
Configuration
Settings live in .env; .env.example documents every one.
The ones you are most likely to change:
| Setting | Default | What it is for |
|---|---|---|
AUTH_SECRET |
none, required | Signs sessions and encrypts the token signing keys. openssl rand -base64 32 |
WEB_PUBLIC_URL |
http://localhost:8080 |
The address people type into their browser |
GATEWAY_BIND |
127.0.0.1 |
Set 0.0.0.0 to let other machines on your network in |
ALLOW_REGISTRATION |
true |
Set false once the admin exists. Covers password sign-up and a first GitHub or SSO sign-in |
AUTH_SSO_CREATE_USERS |
false |
With registration closed, still create an account on a first single sign-on sign-in |
DEFAULT_CHAT_MODEL |
llama3.1 |
Any model you have pulled in Ollama |
OPENAI_API_KEY, GEMINI_API_KEY, ANTHROPIC_API_KEY |
unset | Enable those providers' models for everyone |
KEYCLOAK_ADMIN_PASSWORD, AUTH_KEYCLOAK_* |
unset | Single sign-on; see the SSO section of .env.example |
ALLOW_LEGACY_ANONYMOUS |
false |
Temporary escape hatch for clients without keys, refused unless GATEWAY_BIND is loopback. Removed in 2.0.0; see MIGRATION.md |
Want Ollama in Docker instead of on the host? Rundocker compose --profile ollama up and setOLLAMA_HOST=http://ollama:11434. It runs on CPU only on macOS.
Extend it with plugins
Model providers, embedders, the vector store, document loaders, chunkers,
authentication and MCP tools are plugins behind typed interfaces inldk_core.ports. A plugin is a small Python package with a manifest and an
entry point:
[project.entry-points."llm_dev_kit.plugins"]
"llm.my-host" = "my_plugin:plugin" # <kind>.<name>
Each interface ships a contract test suite. Your plugin passes the same tests
as the built-in ones in services/plugins/:
from ldk_core.testing.contracts import LLMProviderContract
class TestMyHost(LLMProviderContract):
@pytest.fixture
def provider(self):
return MyHostProvider(...)
@pytest.fixture
def model(self):
return "my-model"
Plugins run in-process with the service's permissions. Their manifests declare
what they do, but that is disclosure, not a sandbox.
Development
Python services
python3.12 -m venv .venv && source .venv/bin/activate
pip install -r requirements-dev.txt # ldk_core and every plugin, editable
ruff check services tests && ruff format --check services tests
mypy
PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 python -m pytest
Web app (Node 22.12+)
cd web && npm install
cp .env.example .env # then set AUTH_SECRET
npm run typecheck && npm run lint && npm test && npm run build
npm run dev # http://localhost:3000
Hot reload in Docker: docker compose -f docker-compose.yml -f compose.dev.yml up --build.
Testing
make runs the same checks as CI, from an activated virtualenv:
| Command | Runs |
|---|---|
make check |
Lint (ruff, ESLint), types (mypy, tsc), and every Python and web test |
make test-python / make test-web |
One side only. Postgres-backed tests need Docker running |
make e2e |
Starts the whole stack with docker compose up --wait, then smoke-tests it |
make smoke |
Smoke-tests a stack that is already running: health of every service, sign-in redirects, 401s on every API, security headers. Read-only, so it is safe against an instance you use |
make gateway-check |
Stops the web container briefly on a running stack and checks what the gateway answers: a real 502, 503 or 504 on the web app's API routes, the starting page on page navigations. Restarts web when done, so not for an instance in use |
make backup |
Backs up a running stack into one dated archive in backups/: the web database, copied consistently while it runs, and the document index, with Chroma stopped for a few seconds. Never includes .env. See docs/backup.md |
make restore ARCHIVE=… |
Restores an archive into a fresh stack, and refuses to overwrite one that already has data |
make restore-check |
Backs up the running stack, restores the archive into a throwaway second stack, and checks that an account signs in and the user, chat and chunk counts match |
make replica-check |
Kills one rag-service replica on a running stack and checks the gateway fails over: requests reach both replicas, keep succeeding within seconds with one gone, and reach it again once it restarts. Starts it again when done, so not for an instance in use |
CI runs four jobs on every pull request and push, and again before images are
published from main:
| Job | Checks |
|---|---|
python |
ruff, mypy, pytest against a real Chroma and a real Postgres with pgvector |
web |
typecheck, lint, Vitest, production build |
images |
Builds every image and proves each one starts |
stack |
Starts the full Compose stack and runs scripts/smoke.sh against it, including a real sign-up, then scripts/gateway-failure-check.sh, which stops web and checks the gateway reports it honestly, scripts/replica-failover-check.sh, which kills a rag-service replica and checks the gateway fails over to the other, and scripts/restore-check.sh, which restores a backup into a second stack and compares the two |
Releases and versions
Versions follow Semantic Versioning, cut automatically
from Conventional Commits by
release-please:
- Pull request titles use the Conventional Commit form:
fix:makes a patch
release,feat:a minor one, andfeat!:or aBREAKING CHANGE:footer a
major one.docs:,test:,ci:andchore:make no release. - Every merge to
mainupdates one open release PR with the next version
and its changelog entry. - Merging the release PR tags
vX.Y.Z, publishes the GitHub release, and
pushes the images toghcr.io/sameeralam3127/llm-dev-kit-<service>asX.Y.Z,X.YandX. Pushes tomainare also published aslatest. - The commits decide the number; it is never chosen by hand. A
Release-As: X.Y.Zfooter exists only to correct a mistake. - "v3" is the name of the current plan, not a version. It changes storage
incompatibly, so it ships as 2.0.0.
web/ Next.js app: chat, accounts, admin console, identity service
src/server/identity/ roles, signing keys, access tokens, API keys
src/server/services/ every database write and ownership check
services/
core/ ldk_core: interfaces, plugin registry, auth, errors, logging
plugins/ ollama, litellm, chroma, loader_pdf, chunker_fixed, tools, auth
llm_service/ model routing
rag_service/ retrieval, grounded chat, /v1, ingestion, cache
mcp_service/ MCP server
core_api/ v3: Postgres schema, workspaces, ingestion jobs, hybrid search, /v1
ingest_worker/ v3: the background ingestion worker
model_gateway/ v3: the only path to a model; sovereign mode and audit
nginx/nginx.conf the gateway
deploy/keycloak/ the realm the sso profile imports
docs/ setup, usage, the v2 plan and migration notes, the v3 roadmap
tests/ Python unit, contract and service tests
scripts/smoke.sh smoke test of a running stack (make smoke, CI's stack job)
scripts/gateway-failure-check.sh what the gateway says with web down (make gateway-check)
scripts/replica-failover-check.sh failover across rag-service replicas (make replica-check)
scripts/backup.sh, restore.sh, restore-check.sh backups and a tested restore (make backup, restore, restore-check)
Makefile the same checks CI runs: make check, make e2e
Project status
v1.1.1 is the current release (2026-11-28). It is what docker compose up
runs: chat, grounded answers from your PDFs, accounts, roles, API keys, single
sign-on and the admin console. Every release is listed in
the changelog.
| Release | When | What |
|---|---|---|
| v1.0.0 | October 2026 | First release |
| v1.1.0 | November 2026 | Security and reliability: a setup code for the first admin, closed registration that covers GitHub and single sign-on, sign-in rate limits, PDF parsing limits, a Content-Security-Policy, bounded model options, and simultaneous sends that no longer lose messages |
| v1.1.1 | November 2026 | Large PDFs embedded in batches, cached answers on /v1, race-condition fixes, and a web image a quarter of the size |
| 1.2.0 | Next | A guided quick start, backup and restore, and property-based and browser end-to-end tests |
| 2.0.0 ("v3") | February 2027 | The secure core in Compose: Postgres, workspaces, sovereign mode. A major version because storage changes incompatibly |
| Area | ||
|---|---|---|
| ✅ | Core | Interfaces, plugin registry, contract tests, CI gate |
| ✅ | Authentication | Tokens, API keys, roles, SSO. Breaking for /v1: see MIGRATION.md |
| ✅ | Admin console | Overview, users, API keys, documents, health and settings |
| 🚧 | v3 secure core | Postgres schema, workspace API keys, ingestion queue, hybrid search and model-gateway are built and tested; the web app is moving onto them (Postgres, chat through core-api and a shared team workspace are done on the v3 branch) |
| ⏳ | Sovereign mode end to end | Already enforced in model-gateway; reaches Compose with v3 |
| ⏳ | Per-user documents | Personal workspaces, after v3; v3 keeps one shared team workspace, as today |
| ⏳ | Distribution | Multi-arch images, Helm chart, any-cloud hosting, after v3 ships |
Good to know today:
- Documents are shared by every user. v3 keeps it that way, in one team
workspace; personal workspaces come later. - Models whose names end in
-cloudrun on ollama.com, not on your machine;
the admin console lists them separately. - The v3 services (
core_api,ingest_worker,model_gateway) are in the
repository and fully tested, but Compose does not start them yet. - Known security problems are tracked in the open on the project's issue
tracker.
Next: 1.2.0 makes the stack easier to start and safer to run, with a
guided quick start and tested backups. Alongside it, v3
Milestone 1 ("secure core") moves the web app onto Postgres and core-api and
brings model-gateway into Compose. Steps (a) to (e) are done on the v3 branch,
and step (f), moving the web app across, is under way.
Milestones and decisions are in docs/v3/ROADMAP.md.
Troubleshooting
| Symptom | Fix |
|---|---|
required variable AUTH_SECRET is missing |
Add one: echo "AUTH_SECRET=$(openssl rand -base64 32)" >> .env |
| "No local models" in the model picker | Check ollama list, and that .env has no OLLAMA_HOST=http://localhost:11434 line |
401 from the API |
Send Authorization: Bearer sk-ldk-…; a revoked key stops working within a minute |
403 from the API |
Your role cannot do that: only user and admin add documents |
| Your new account is not the admin | Sign up with the setup code from docker compose logs web in the "Setup code" field; an existing account can sign up again with its password and the code |
| "Too many sign-in attempts" | Wait a few minutes: 10 attempts a minute per address, 5 failed attempts per email every 15 minutes |
| A PDF upload is refused with a limit | It has more than 2,000 pages, 4 million characters, takes over 60 seconds to read, or makes more than 10,000 chunks; split it into parts |
llm-service or rag-service will not start, naming ALLOW_LEGACY_ANONYMOUS |
That setting makes anonymous callers admins, so it is refused unless GATEWAY_BIND is 127.0.0.1. Give clients API keys and turn it off |
Nothing at localhost:8080 |
docker compose ps; if services show Exited, run docker compose up -d |
More in docs/setup.md.
Documentation
| Guide | Read it to |
|---|---|
| docs/setup.md | Install step by step and fix common problems |
| docs/usage.md | Add documents, chat, and bring in your team |
| docs/backup.md | Back up an instance, restore it, and prove the restore works |
| CHANGELOG.md | See what changed in each release |
| SECURITY.md | Report a vulnerability privately |
| CONTRIBUTING.md | Set up, run the checks and open a pull request |
| docs/v2/MIGRATION.md | Upgrade clients to API keys |
| docs/ARCHITECTURE.md | Understand request flows and the Docker build |
| docs/v2/PLAN.md | See how the v1 features were planned and built |
| docs/v3/ROADMAP.md | See where the project is going next |
| web/README.md | Work on the web app |
License
MIT © 2025 Sameer Alam
Reviews (0)
Sign in to leave a review.
Leave a reviewNo results found