- TypeScript 98.9%
- Python 0.8%
- Shell 0.2%
|
All checks were successful
Publish release / publish (push) Successful in 1m53s
|
||
|---|---|---|
| .forgejo/workflows | ||
| docs | ||
| packages | ||
| plugins | ||
| providers | ||
| scripts | ||
| tests | ||
| .envrc | ||
| .gitignore | ||
| .prettierignore | ||
| .prettierrc | ||
| bun.lock | ||
| bunfig.toml | ||
| eslint.config.ts | ||
| flake.lock | ||
| flake.nix | ||
| LICENSE | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
ReikoAI
ReikoAI is a self-hosted assistant you run from a terminal. An agent combines a model, a system prompt and a session. Use a named prompt to give it a character, and enable plugins when it needs tools, memory, web search or speech.
Quick start
Install from source
You need Bun, Git, access to the Forgejo repository over SSH and an OpenAI-compatible model endpoint.
git clone ssh://forgejo@git.ruject.fun/RuJect/reikoai.git
cd reikoai
bun install
Configure a model
Create the data/ directory in the checkout, then create data/reikoai.toml. Replace the example URL and model ID with values from your provider.
version = 1
[plugins.daemon]
source = "@reikoai/daemon"
enabled = true
[plugins.openai]
source = "@reikoai/openai-plugin"
enabled = true
[plugins.base-ui]
source = "@reikoai/base-ui-plugin"
enabled = true
[prompts]
companion = "You are Reiko, a friendly and curious companion."
[[providers]]
id = "example"
title = "My model provider"
token = "$SECRET:MODEL_API_KEY"
[[providers.models]]
id = "your-model-id"
title = "My chat model"
[providers.protocol]
id = "openai"
url = "https://api.example.com/v1"
Create data/.env and set MODEL_API_KEY to your provider token.
Start chatting
Start the host from the checkout.
bun run cli host
In another terminal, open the interface.
bun run cli tui
Open the Agents tab in the left panel, choose + Agent, and select the configured model and the companion prompt. You can also send a one-off prompt from the CLI.
bun run cli ask --model example/your-model-id --prompt-name companion "Hello!"
Install the CLI globally
Once the packages are published to npm, install the CLI with Bun or npm. Both installations need bun on your PATH.
bun add --global --linker hoisted @reikoai/cli
# Or: npm install --global @reikoai/cli
This installs the daemon, base-ui and OpenAI plugins used above. From the directory containing your data/ folder, run reiko host and open reiko tui in another terminal. Use --data-folder on both commands if you keep your config elsewhere.
Where to go next
- Configuration and daemon covers providers, secrets, plugin setup and reloads.
- Terminal client covers navigation, agent management and separate windows.
- Documentation index lists plugin guides and integration references.
Development
The repository is a Bun workspace. Run bun test from its root. See Architecture for the package layout and runtime boundaries.
Edit the shared version and metadata in the root package.json, then run bun run sync:packages to update the workspace manifests and lockfile. Run bun run check:packages to check the manifests. The build runs this check before the tests.
Release a version
The Forgejo workflow runs when you push a v* tag to git.ruject.fun. It uses the repository secret NPM_TOKEN and an ubuntu-latest runner with Git and Node.js 20. Update runs-on if your runner uses a different label.
Set the version in the root manifest, run bun run sync:packages and commit the updated files. Tag that commit as v<version> and push the branch and tag.
git tag -a v1.0.0 -m "ReikoAI 1.0.0"
git push --atomic origin main v1.0.0
The workflow packs public workspaces from the tagged commit, publishes them to npm in dependency order and creates the Forgejo release. Prerelease versions use the npm dist-tag next. If publishing stops partway through, rerun the same Forgejo job. It skips versions whose tarballs already match npm.
See LICENSE.