Selfhosted
A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.
Rules:
-
Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.
-
No spam posting.
-
Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.
-
Don't duplicate the full text of your blog or github here. Just post the link for folks to click.
-
Submission headline should match the article title (donβt cherry-pick information from the title to fit your agenda).
-
No trolling.
-
No low-effort posts. This is subjective and will largely be determined by the community member reports.
Resources:
- selfh.st Newsletter and index of selfhosted software and apps
- awesome-selfhosted software
- awesome-sysadmin resources
- Self-Hosted Podcast from Jupiter Broadcasting
Any issues on the community? Report it using the report flag.
Questions? DM the mods!
view the rest of the comments
I'm a little confused about this thing's use case.
What does it do differently/better than OpenCode ?
OpenCode is specific to coding workflows. Loki is built to be a general LLM runtine/workflow engine for any problem domain, not just code. An example use I have for it is a cron job that runs at boot to
Opencode isn't very fun to set up with local LLMs and I've had issues with tool calling, but it's very doable! That said, OpenCode is my go-to, absolutely love it compared to all alternatives I've tried
When it comes to writing code, OpenCode is my go-to as well. It's my ultimate benchmark for how well optimized and reliable I can make local models function in Loki.
Opencode needs like 10k tokens just to get started
That's only if you use the default
Buildagent with the built-in prompt (https://github.com/anomalyco/opencode/blob/dev/packages/opencode/src/session/prompt/default.txt), and yes it is quite large.It's trivial to create custom agents in
opencode.jsonwith custom prompts, tools, whatever..For example I have created a
Personalagent which handles menial stuff such as searching/editing my notes, appointments, tasks... with a restricted set of tools and skills.The single most important change I made is only allowing the
localprovider in the config, which disables all cloud providers. IMHO this should be the default but I'm not complaining. It's the best open-source harness I've tried so far. I want to try pi.dev someday (quite minimal, needs a good amount of setup and tuning).I also argue that some local models actually behave much better with a semi-large system prompt (qwen 3.6 for example tends to lose itself in reasoning if you only use the default
You are a helpful assistantsystem prompt and a basicSay hiuser prompt - opencode-like large system prompts fixes this; even if you lose some time for initial prompt loading)Is that included in the token & cost counter? I haven't really noticed that yet. It's just the most reliable and best harness i've yet used. For context i've only otherwise tried claude, gemini, and aider. More if you count non cli apps
Yes of course. It's all tools and skills and system stuff
But 10k isn't much in the grand scope. But it can be a big hurdle if you want to use opencode with local small models
Haven't configured much beyond this but what's wrong with
ollama launch opencode <model>? Haven't had an issue yet.yo... what? i was configuring json files n shit with custom sources. granted i used lmstudio as ollama doesn't support mlx models or something for mac. This is definitely the easy way if you're using ollama.
Ditto. I don't see how this is different/better from existing harnesses such as Opencode, Pi, and even "commercial" open source offerings such as the CLIs for Codex, Copilot, and Gemini, especially once tricked out with plugins and extensions.