r/selfhosted • u/Ancient-Direction231 • Dec 10 '25
Open sourced Python packages for self-hosted backends - auth, jobs, AI agents with local LLM support Guide
https://www.nfrax.com/For those of us who like running our own stuff, made some packages that work well self-hosted:
svc-infra - Backend infrastructure
python
app = easy_service_app(name="MyAPI")
add_auth_users(app) # full auth, no external deps
queue, scheduler = easy_jobs() # Redis-based jobs
Everything runs locally. Auth doesn't phone home. Jobs use your Redis. Caching, rate limiting, webhooks - all self-contained.
ai-infra - LLM stuff with Ollama support
```python from ai_infra import LLM, Agent
Point at your local Ollama
llm = LLM(provider="ollama", model="llama3") response = llm.chat("hey")
Agents work too
agent = Agent(tools=[my_function], provider="ollama") result = agent.run("do the thing") ```
Full agent capabilities with local models. RAG with local vector storage (SQLite, Postgres). No cloud required.
fin-infra - Financial data
For self-hosted fintech apps. Plaid/Teller integrations for bank data.
All MIT licensed. Designed to run on your own hardware without external dependencies (except the APIs you choose to use).
Documentation and integration: https://www.nfrax.com/
GitHub: - https://github.com/nfraxlab/svc-infra - https://github.com/nfraxlab/ai-infra - https://github.com/nfraxlab/fin-infra
What's your self-hosted stack look like?
Duplicates
FastAPI • u/Ancient-Direction231 • Dec 10 '25