No description
  • TypeScript 98.9%
  • Python 0.8%
  • Shell 0.2%
Find a file
Rustam Efimov f71de75d30
All checks were successful
Publish release / publish (push) Successful in 1m53s
ci: publish releases automatically from version tags
2026-12-02 12:06:44 +03:00
.forgejo/workflows ci: publish releases automatically from version tags 2026-12-02 12:06:44 +03:00
docs feat(cli): support global installation 2026-12-02 11:44:27 +03:00
packages feat(cli): support global installation 2026-12-02 11:44:27 +03:00
plugins chore: update and sync metadata 2026-12-02 10:30:23 +03:00
providers chore: update and sync metadata 2026-12-02 10:30:23 +03:00
scripts ci: publish releases automatically from version tags 2026-12-02 12:06:44 +03:00
tests feat(cli): support global installation 2026-12-02 11:44:27 +03:00
.envrc initial commit 2026-10-29 18:54:08 +03:00
.gitignore feat(plugins): add local Chatterbox audio output 2026-11-27 22:41:47 +03:00
.prettierignore initial commit 2026-10-29 18:54:08 +03:00
.prettierrc initial commit 2026-10-29 18:54:08 +03:00
bun.lock feat(cli): support global installation 2026-12-02 11:44:27 +03:00
bunfig.toml initial commit 2026-10-29 18:54:08 +03:00
eslint.config.ts fix(plugins): run the Chatterbox V3 sidecar outside nix-shell 2026-11-28 10:59:38 +03:00
flake.lock initial commit 2026-10-29 18:54:08 +03:00
flake.nix fix(email): make bundled SMTP tools available 2026-11-29 15:15:06 +03:00
LICENSE initial commit 2026-10-29 18:54:08 +03:00
package.json feat(cli)!: move host startup into the CLI 2026-12-02 10:36:02 +03:00
README.md ci: publish releases automatically from version tags 2026-12-02 12:06:44 +03:00
tsconfig.json refactor(tui): simplify the package entry point 2026-12-02 10:32:32 +03:00

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

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.