[FEATURE][EPIC] Native AI features in MokoGitea via the MokoAi stack (mimic Claude functionality) #763
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Feature Description
Add native AI features to MokoGitea powered by the branded MokoAi stack
(the Go gateway
MokoConsulting/mokoaiin front of Ollama, with the Nodemokoai-cliclient). The goal is to mimic a subset of Claude / AI-assistantfunctionality directly inside the Gitea UI and API, using our own
self-hosted, OpenAI-compatible control plane instead of a third-party service.
This rounds out the ecosystem: MokoGitea is both the identity/source-of-truth
(users authenticate here) and a first-class consumer of MokoAi.
Problem or Use Case
The org runs its own Git forge and its own AI gateway. Contributors currently
have no in-forge AI assistance (review, summaries, search) and would otherwise
depend on external tools. Wiring MokoGitea to MokoAi keeps everything on-prem,
branded, and governed by our own auth + policy.
Proposed Solution
Integrate MokoGitea with the MokoAi gateway (OpenAI-compatible
/v1/*) andsurface AI features in the UI/API. Depends on MokoAi roadmap items, notably
MokoGitea-bridge auth (users verify with their own MokoGitea identity) and
the built-in MokoGitea MCP (tools act as the calling user).
Candidate Claude-like features (each can become its own child issue):
Implementation Details
user (respecting repo permissions). No shared keys.
MokoAi/v1/chat/completionsand/v1/embeddings; model aliases (e.g.mokoai-coder) decouple from physical models.list PR diffs, post comments) as the user.
Benefits
Dependencies (MokoAi roadmap)
Checklist