this post was submitted on 26 May 2026
95 points (79.9% liked)

Selfhosted

56957 readers
1306 users here now

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:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. 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.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

  7. No low-effort posts. This is subjective and will largely be determined by the community member reports.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 3 years ago
MODERATORS
 

For the longest time, I've been trying to figure out a way to "survive" in this new AI age without having to fork over a ton of money just to keep up. I've tried using local models via Ollama, and while they definitely work to a degree, they're (unsurprisingly) not as good as the big model providers.

The local models tend to

  • Forget what they're doing
  • Struggle to break larger tasks into smaller ones
  • Lose focus easily
  • Have weaker coding performance
  • Drift over longer sessions

So to improve the reliability of fully local, smaller models (and to keep all my data local and in my own network), I created Loki.

It's a local-first, batteries-included command line tool and runtime for building and running LLM workflows locally. It's model agnostic and supports things like

  • Agents and agent delegation
  • Roles/personas
  • MCP Servers
  • RAG
  • Custom tools
  • Macros
  • Workflow Scripting

A lot of the features it supports are specifically designed to compensate for weaknesses in smaller local models. For example:

  • Auto continuation to keep pushing models to completion instead of stopping halfway through problems
  • Parallel agent delegation so tasks can be split into smaller, focused scopes
  • Workflow-based execution ("If this, do that") for building more reliable and repeatable automations

It also supports the major cloud providers if you want them (which definitely helped while testing πŸ˜„), but my long-term goal is simple:

Get as close as possible to Claude Code-style reliability using fully local models.

I'm always open to feedback, questions, or ideas.

Repo: https://github.com/Dark-Alex-17/loki

you are viewing a single comment's thread
view the rest of the comments
[–] CallMeAl@piefed.zip 20 points 3 hours ago* (last edited 3 hours ago) (1 children)

I like that you are so focused on local models but I can't find any info on setting up local models in the clients setup https://github.com/Dark-Alex-17/loki/wiki/Clients

What am I missing?

Edit: well it seems this post is an entirely fictional origin story. Here is the first time OP posted about his project 6 months ago https://piefed.zip/c/rust/p/663115/loki-an-all-in-one-batteries-included-llm-cli

[–] aclarke@lemmy.world 9 points 3 hours ago* (last edited 3 hours ago)

So actually, this was the original purpose of it. But all the help I tried to get on it didn't really have much interest in doing anything outside of the usual big model providers, so I tried advertising a more general use case to attract more input. I can't deny that agnostic support for even the big providers is helpful when you're trying to stay current with the rapid advances in LLMs.

After that, I kind of gave up on getting feedback on local-first models. So, instead, I just dove in head-first the way I wanted;Trying new things, building new agents to try and rival Claude Code, adding features as I found them useful and necessary to improve that reliability, etc., and iterating. Then, with the most recent release on Friday, I had done so many changes and improvements specifically for local models that I thought I finally had a strong enough tool to maybe pique enough people's interest to get some feedback and input. πŸ™‚

Oh, and the config example shows how to add Ollama models here