Repository navigation
Releases
Oshi Engine 0.17.1
This release fixes what the final code review of 0.9 to 0.17.0 found: eleven issues, one high, five medium and five low. It adds no features. One migration adds a column for contacts, and settings and novel get patch versions.
The high one:
- The travel tool no longer shares other people's homes.
travel_timelisted every home she knows in its description and found any of them by name, so one user could get another user's address, or the address of someone only that other user had told her about. The tool, a place instart_activityand whereabouts now follow the contact rules: a person hears of her own people's homes, their own, and those of the people they told her about, and the owner in a private chat hears of every home. Any other home gets "You do not know where Ana lives", and the name is never looked up as an address.POST /v1/travel/routesees every home with a key that hasusers:read.
Medium:
- Times that crashed a reply are refused. Text like "in 1e30 minutes" or "in inf hours" panicked in the time math, from her tools and from the activity and event routes. Minutes that are not finite, are negative or go past 60 days are not a time now. Moving an activity,
untilanddepart_atgo at most 14 days ahead, a typed date and the history day at most ten years. - Deleting a user with
keep_contact=truekeeps the people they told her about, as the docs said. Until now the database deleted them with the user, homes included. They now belong to the kept contact (learned_from_contact), only the owner can ask her about them, in private, and deleting that contact later removes them too. The default delete still removes everything. The Contacts view shows them with a "Told by" badge. - Avatars from before 0.16 are copied instead of moved, and backed up. 0.16.0 to 0.17.0 moved
<data>/live2d/toavatars/andruntimes/on the first start, while the update's health check was still running, so a failed check rolled back to a 0.15 with no models. An old model whose id was already taken was dropped. 0.17.1 copies them, keeps a taken id as<id>-legacy, and removeslive2d/on a later start with no update pending. Pre-update backups holdlive2d/while it exists. See Upgrading for what this means for a rollback below 0.16. - Module keys no longer read contacts. They have
users:readto find who a chat is with, which also opened the contact list with homes, birthdays and the people she heard of in private chats. No module uses/v1/contacts, so module keys get 403 on every contact route. - The message log, debug entries and watcher incidents need
chat:read. An admin key narrowed tostatus:readcould read every chat through the log. Scoped owner keys also needsettings:readforGET /v1/debug, andsettings:writeto turn debug mode on or off or to clear its entries.
Low:
moreis now right at the largest page of the message log (500) and of debug entries (1000). It was always false there.- A time in the spring-forward gap, such as 02:30 on the night the clocks go forward, is read as an hour later in activities, whereabouts, her week and the transit cache, as her day already did. Activities and whereabouts used to refuse it.
- In Docker,
oshi update restorewrites the old core toOSHI_CORE_DIR(/data/bin/oshi) instead of failing on the image's read-only binary. The steps are under Upgrading. - The novel card fits narrow screens: at 450x900 it was 468 px wide and is 450 now. The novel manifest names Live2D and Spine.
Modules in this release
| Module | Version | Needs core | Builds |
|---|---|---|---|
| browser | 0.7.2 | 0.3.0 or newer | x86_64, aarch64 |
| novel | 0.16.1 | 0.16.0 or newer | any |
| settings | 0.17.1 | 0.17.0 or newer | any |
| telegram | 0.2.4 | 0.2.0 or newer | x86_64, aarch64 |
| webchat | 0.10.1 | 0.10.0 or newer | any |
| webchat-attachments | 0.5.0 | 0.5.0 or newer | any |
| webchat-stickers | 0.5.0 | 0.5.0 or newer | any |
| webchat-themes | 0.5.0 | 0.5.0 or newer | any |
settings and novel are new versions. The other modules are unchanged; the store keeps the artifacts of the release that first shipped them.
Settings 0.17.1 still runs on core 0.17.0. Its one change is the "Told by" badge for people kept with a deleted user, read from the new learned_from_contact field. Core 0.17.0 never sends that field and never keeps such people, so there the Contacts view looks as it did. Settings 0.17.0 on core 0.17.1 shows those people as her own until it updates. Novel 0.16.1 changes only the card's CSS and the manifest description, so it keeps its range.
Upgrading
Run oshi update apply, or in Docker pull the new image. With modules.auto_update on (the default), the next module check installs settings 0.17.1 and novel 0.16.1. Neither waits for core 0.17.1.
Migration 11 adds the column learned_from_contact to contacts, a reference to another contact with ON DELETE CASCADE, and an index on it. Existing rows get no value and nothing else changes. The column is only filled when the owner deletes a user with keep_contact=true: the people she heard of from that user then point at the kept contact instead of the user, so they stay, and they go when that contact is deleted.
The pre-update backup holds a snapshot of oshi.db taken before the migration, so a rollback, automatic after a failed health check or by hand with oshi update restore <dir>, brings back the database without the column. An older binary started on the migrated database without the backup also starts: it applies only the steps above the stored schema version and reads contacts by column name. People kept from a deleted user have no learned_from there, though, so 0.17.0 treats them as her own people, whom any user may hear of by name and home. If you go back that way, delete them first; settings 0.17.1 shows them with the "Told by" badge.
Keys narrowed to a scope list: an admin or owner key that reads the message log, watcher incidents or debug entries needs chat:read, and an owner key needs settings:read for GET /v1/debug and settings:write for PUT /v1/debug and DELETE /v1/debug/entries. Logins and keys with the default scopes of their level already have them. Module keys now get 403 on /v1/contacts; no shipped module calls it.
Avatars and a rollback below 0.16:
- On 0.16.x or 0.17.0,
<data>/live2d/is already gone, and 0.17.1 cannot bring it back. A rollback to 0.15 finds the models only underavatars/. To use them there, copy each<data>/avatars/<id>/back to<data>/live2d/models/<id>/and<data>/runtimes/cubism-core/live2dcubismcore.min.jsto<data>/live2d/core/by hand. Live2D models work on 0.15 this way; Spine and Cubism 2 avatars need 0.16 or newer. - On 0.15 or earlier, 0.17.1 copies the models and Cubism Core and leaves
live2d/alone during the health check, so a failed check rolls back to a 0.15 that still has them.live2d/.copied-to-avatars.jsonlists what was copied. The next start with no update pending removeslive2d/. When the update comes from pulling the 0.17.1 image, its launcher takes the pre-update backup, which then holdslive2d/, sooshi update restorebrings it back later. When the running 0.15 engine applies the update (oshi update apply, the settings UI orupdates.auto), it takes the backup itself, withoutlive2d/, so once the folder is removed, a rollback to 0.15 needs the same copy by hand. - From 0.17.1 on, every pre-update backup holds
live2d/while it exists.avatars/andruntimes/stay out of backups: a model can be 100 MB or more, an update never changes them, and a rollback finds them in place.
To restore a backup by hand in Docker:
- List the backups with
docker compose exec oshi-engine oshi update backupsand note the directory and the version in its name (...-pre-update-v0.17.0). - Stop the engine:
docker compose stop oshi-engine. - Restore in a one-off container:
docker compose run --rm oshi-engine update restore /data/backups/<dir>. The old binary goes to/data/bin/oshi. - Set
OSHI_IMAGE_TAGto the backup's version (0.17.0) and rundocker compose up -d. In Dokploy, set it in the Environment tab and redeploy.
Step 4 matters because the launcher runs the newer of /data/bin/oshi and the image's binary. On the 0.17.1 image it would take the restored volume as an older install and update it again.
No prompt template or model profile changed in this release. If you keep your own templates in prompts/engine/, there is nothing to copy.
Coming from 0.9.0 or earlier, the compose service rename described in the 0.10.0 notes still applies.
Downloads
oshi-x86_64-linux.tar.gzandoshi-aarch64-linux.tar.gzcontain theoshibinary. They need glibc 2.34 or newer.- The module tarballs are named
<id>-<version>-<target>.tar.gz. The browser, telegram, webchat and webchat extension tarballs are rebuilds of unchanged versions. - Each tarball has a
.sha256file, andSHA256SUMScovers all of them.store.jsonholds the store index entries for the modules in this release.
The Docker image is ghcr.io/oshiengine/oshi-engine:0.17.1 (also 0.17, beta, stable and latest) for amd64 and arm64.
Getting started
tar -xzf oshi-x86_64-linux.tar.gz
./oshi init
./oshi serve
With the engine running, ./oshi module install settings and ./oshi module install webchat add the settings and the chat. Open http://127.0.0.1:7420/settings and create the owner login with the setup code from oshi init. Before talking to her, set llm.providers.local.base_url and llm.chat.model in oshi.toml (or the env file) to an OpenAI-compatible server.
With Docker, docker-compose.yml starts the engine with the web chat and its extensions, novel mode and the settings; the setup code is in the log (docker compose logs oshi-engine). docker-compose-full.yml adds every module, SearXNG and the headless Chrome, with SEARXNG_SECRET set in .env.
All changes: h...
Oshi Engine 0.17.0
This release finishes milestone 0.17, Logs and debugging. The owner can read every message in and out of every chat in one list, and can turn on debug mode to see what the engine did and why: the prompts the model saw, the tool calls, the scheduler and the decisions of her day.
- Message log:
GET /v1/logs/messageslists the messages of all chats, newest first, with filters for person, app, chat, direction, text and time, and pages by message id (before,after). Rows the engine made, such as touch notes, notices and system text, havedirection: engineand can be left out withhide_engine=true. Admins and the owner can read it, the same keys that can already read every chat. CLI:oshi log messages. - The Messages view in the settings UI puts the filters on top and the list under them. Tapping a message opens the chat around it, with buttons for earlier and later lines.
- Debug mode (
logging.debug, off by default) records entries for model requests, tool calls, the scheduler, presence, initiative, her day and week, activities, her events, the watcher, background jobs, route lookups, avatar touches and incoming messages. Kinds are named<group>.<what>(llm.request,tool.call, ...), so a filter can take a whole group. While debug mode is off, nothing is collected. - Routes:
GETandPUT /v1/debug,GETandDELETE /v1/debug/entries, andGET /v1/debug/entries/{id}. Every one of them is owner only, reading included. CLI:oshi debug on|off|status|tail|show|clear. - The Debug view in the settings UI, for the owner only: the switch, the space used against the cap, a clear button that asks first, the kinds with their counts, filters, and the entries. A model request opens as the conversation the model saw, with the tools offered and the answer.
Debug mode records the message text and the prompts of everyone she talks to. Only the owner can turn it on, with PUT /v1/debug, oshi debug on, the Debug view, or logging.debug in PUT /v1/settings, which refuses admin keys for that path as it does for updates.*. Admins can still change logging.debug_days and logging.debug_max_mb, because those only remove data.
Entries are written to <data>/logs/debug.db (/data/logs/ in Docker) and appended as JSON lines to one file per day, <data>/logs/debug-<date>.jsonl, which jq can read while the engine is stopped. Entries older than logging.debug_days (7) are removed. The table and the files each keep at most logging.debug_max_mb (100 MB), dropping the oldest entries first, so together they stay under about twice that. A day file starts a new part at an eighth of the cap, so the oldest part can go without the whole day. The caps are also applied once an hour while debug mode is off. Deleting a chat or a user removes their entries from the table and the files, and oshi debug clear or the clear button removes everything.
Keys and passwords are masked before an entry reaches the table or the file. One function replaces provider API keys and extra header values, calendar passwords and iCalendar links, the secret settings of installed modules such as bot tokens, and anything shaped like a key: Authorization and Bearer values, oshi_ keys and login sessions, sk-, ghp_ and similar keys, Telegram bot tokens, passwords in URLs, signed links, link codes, invite links, setup codes and private keys. Model requests are recorded from the request the engine built, before HTTP headers are added, so the provider key is not in them in the first place.
logs/debug.db is a separate SQLite file from oshi.db, so a large debug log does not grow oshi.db or its backups and does not share its write lock. 0.17.0 creates it, empty, on its first start, even with debug mode off.
Modules in this release
| Module | Version | Needs core | Builds |
|---|---|---|---|
| browser | 0.7.2 | 0.3.0 or newer | x86_64, aarch64 |
| novel | 0.16.0 | 0.16.0 or newer | any |
| settings | 0.17.0 | 0.17.0 or newer | any |
| telegram | 0.2.4 | 0.2.0 or newer | x86_64, aarch64 |
| webchat | 0.10.1 | 0.10.0 or newer | any |
| webchat-attachments | 0.5.0 | 0.5.0 or newer | any |
| webchat-stickers | 0.5.0 | 0.5.0 or newer | any |
| webchat-themes | 0.5.0 | 0.5.0 or newer | any |
settings is the only new version. The other modules are unchanged; the store keeps the artifacts of the release that first shipped them.
Settings 0.17.0 needs core 0.17.0. The Messages and Debug views call /v1/logs/messages and /v1/debug, which core 0.16.0 answers with 404, and their text comes from strings that only core 0.17.0 has, so on an older core both views would fail and the menu would show raw string keys. Settings 0.16.0 keeps working on core 0.17.0 until it updates. Its settings form is drawn from the engine's schema, so the three new settings show up in the logging section, and the owner can turn debug mode on there or with oshi debug on.
Upgrading
Run oshi update apply, or in Docker pull the new image. With modules.auto_update on (the default), the next module check installs settings 0.17.0. It waits for core 0.17.0: on an older core the store lists it as "needs core 0.17.0" and it stays on 0.16.0.
Migration 10 adds one index, messages_time on messages(created_at, id), so the message log can read all chats newest first and page by message id without scanning the whole table. It adds no table or column and changes no rows. SQLite builds the index on the first start, which takes a moment on a large messages table.
The pre-update backup holds a snapshot of oshi.db taken before the migration, so a rollback, automatic after a failed health check or by hand with oshi update restore <dir>, brings back the database without the index. A 0.16.0 binary started on the migrated database without the backup also starts: it applies only the steps above the stored schema version, and the extra index does not affect it. It also ignores the logging.debug* keys in oshi.toml.
The pre-update backup does not include logs/. It holds the binary, a database snapshot, oshi.toml, character/, memory/, prompts/ and the module state and settings. Debug entries never end up in a backup, and a rollback leaves logs/debug.db and the day files where they are. 0.16.0 does not read them. To remove them after a rollback, delete logs/debug.db and logs/debug-*.jsonl.
Three new settings, all applied when saved: logging.debug (off, env OSHI_LOGGING__DEBUG), logging.debug_days (7, from 1 to 365, env OSHI_LOGGING__DEBUG_DAYS) and logging.debug_max_mb (100, from 1 to 100000, env OSHI_LOGGING__DEBUG_MAX_MB). The switch applies at once; the caps apply at the writer's next check and at the hourly pass. When the env file sets OSHI_LOGGING__DEBUG, the switch is locked: PUT /v1/debug answers 409 and oshi debug status says to change it in the env file.
No prompt template or model profile changed in this release. If you keep your own templates in prompts/engine/, there is nothing to copy.
Coming from 0.9.0 or earlier, the compose service rename described in the 0.10.0 notes still applies.
Downloads
oshi-x86_64-linux.tar.gzandoshi-aarch64-linux.tar.gzcontain theoshibinary. They need glibc 2.34 or newer.- The module tarballs are named
<id>-<version>-<target>.tar.gz. The browser, novel, telegram, webchat and webchat extension tarballs are rebuilds of unchanged versions. - Each tarball has a
.sha256file, andSHA256SUMScovers all of them.store.jsonholds the store index entries for the modules in this release.
The Docker image is ghcr.io/oshiengine/oshi-engine:0.17.0 (also 0.17, beta, stable and latest) for amd64 and arm64.
Getting started
tar -xzf oshi-x86_64-linux.tar.gz
./oshi init
./oshi serve
With the engine running, ./oshi module install settings and ./oshi module install webchat add the settings and the chat. Open http://127.0.0.1:7420/settings and create the owner login with the setup code from oshi init. Before talking to her, set llm.providers.local.base_url and llm.chat.model in oshi.toml (or the env file) to an OpenAI-compatible server.
With Docker, docker-compose.yml starts the engine with the web chat and its extensions, novel mode and the settings; the setup code is in the log (docker compose logs oshi-engine). docker-compose-full.yml adds every module, SearXNG and the headless Chrome, with SEARXNG_SECRET set in .env.
All changes: v0.16.0...v0.17.0
Oshi Engine 0.16.0
This release finishes milestone 0.16, Avatars from games. Her model in novel mode is now an avatar: a Live2D model, a Cubism 2 model, or Spine skeletons taken from a game. The settings UI has an Avatars view where an import plays as soon as it is dropped. Live2D became one kind of avatar, so several names changed, and the old ones keep working.
- The settings section is
[avatar], the featureavatar, the routes/v1/avatars/*, the eventavatar_changedand the CLIoshi avatar.[live2d]andOSHI_LIVE2D__*are still read asavatar.*, thelive2dfeature counts asavatar,/v1/live2d/*answer as in 0.15 (the model list shows Live2D avatars only),live2d_changedgoes out next toavatar_changed, andoshi live2dis an alias. - Spine import, versions 3.6 to 4.2. The version comes from the skeleton, each skeleton is paired with its atlas, and premultiplied alpha comes from the atlas or is guessed from the first page. Several skeletons make one avatar with an order, offsets and scale, so a Blue Archive lobby or Azur Lane's
_B,_Mand_Tparts come out in the right order. Binary 3.6 and 3.7 skeletons are refused because the official web runtimes of those versions read JSON only; their JSON exports play. - Files are recognised by their content. The Unity suffixes
.bytes,.txt,.assetand.prefabare stripped, and Live2D exports from AssetStudioMod import as they are. - Cubism 2 models (
.model.json,.moc,.mtn) play with the legacy runtimelive2d.min.js. Live2D no longer offers it for download, so the owner uploads their copy. actworks on Spine avatars: animations play on their own track over the idle, Blue Archive pairs are offered under one name, and askinargument changes her outfit, which she keeps until the owner sets a default skin. While she speaks her mouth moves, with the rig's talk animation or by switching the mouth slot.- Touch: a tap or a pat on a touch area plays a reaction in the page at once. When the user is with her and she is awake, her next turn also gets a note about it and she answers, at most once every
avatar.touch_cooldown_seconds(20) per person. The note is an engine note and never reaches memory. Route:POST /v1/novel/touch. - Spine avatars follow the pointer too (IK targets, then head, neck and eye bones by name). The owner can list Live2D parameters or Spine bones that follow a drag.
- The Avatars view in the settings UI: drop a zip or a folder, watch it play, try every motion, animation, expression, outfit and touch area and write a note for each, and set following, skeletons and alpha. "Make it hers" makes it the active avatar. The runtimes are fetched or uploaded from the same view.
- The renderers moved to
web-shared/src/avatar/, so the preview draws with the same code as the novel page.web-shared/has its ownpackage.jsonnow, and the UI build runsnpm cithere first.
Modules in this release
| Module | Version | Needs core | Builds |
|---|---|---|---|
| browser | 0.7.2 | 0.3.0 or newer | x86_64, aarch64 |
| novel | 0.16.0 | 0.16.0 or newer | any |
| settings | 0.16.0 | 0.16.0 or newer | any |
| telegram | 0.2.4 | 0.2.0 or newer | x86_64, aarch64 |
| webchat | 0.10.1 | 0.10.0 or newer | any |
| webchat-attachments | 0.5.0 | 0.5.0 or newer | any |
| webchat-stickers | 0.5.0 | 0.5.0 or newer | any |
| webchat-themes | 0.5.0 | 0.5.0 or newer | any |
settings, novel and webchat are new versions. telegram, browser and the three webchat extensions are unchanged; the store keeps the artifacts of the release that first shipped them.
Settings 0.16.0 needs core 0.16.0. The Avatars view reads /v1/avatars and the runtime routes, which an older core answers with 404, and its text comes from the engine. Novel 0.16.0 needs core 0.16.0 too: it asks only GET /v1/avatars/active and loads the runtimes from /v1/avatars/runtimes/, with no fallback to /v1/live2d/*, so on core 0.15.0 her model would never appear. Web chat 0.10.1 changes only because the shared API helper gained a function the chat does not call, so its range stays. The older parts keep working on core 0.16.0 until they update: settings 0.15.0 lists the avatar section at the end of the form, and novel 0.11.0 still shows Live2D models through the old route and event, but not Spine or Cubism 2 avatars.
Upgrading
Run oshi update apply, or in Docker pull the new image. With modules.auto_update on (the default), the next module check installs settings 0.16.0, novel 0.16.0 and web chat 0.10.1. Settings and novel wait for core 0.16.0: on an older core the store lists them as "needs core 0.16.0" and they stay on 0.15.0 and 0.11.0.
There is no database migration in this release. The Spine license acceptance and the outfit she wears are kept in the existing settings table.
On the first start, 0.16.0 moves each <data>/live2d/models/<id>/ to <data>/avatars/<id>/ and Cubism Core from <data>/live2d/core/ to <data>/runtimes/cubism-core/, then deletes <data>/live2d/. Where the new place already holds something of the same name, that one is kept. The log says "live2d files moved to avatars and runtimes". The move runs before the engine opens the database, so it has already happened when the health check runs.
The pre-update backup does not cover these files. It holds the binary, a database snapshot, oshi.toml, character/, memory/, prompts/ and the module state and settings. A rollback, whether automatic after a failed health check or by hand with oshi update restore <dir>, brings back the 0.15.0 binary and the oshi.toml with its [live2d] section, but the model files stay where 0.16.0 put them. 0.15.0 then finds no models and no Cubism Core, and novel mode shows no model. Nothing is deleted. To use them on 0.15.0, copy each <data>/avatars/<id>/ back to <data>/live2d/models/<id>/ and fetch Cubism Core again (oshi live2d core --fetch --accept-license, or the hint on the novel page). On the next start of 0.16.0 the copies in live2d/ are deleted and the ones in avatars/ are kept. Live2D models work on 0.15.0 this way; Spine and Cubism 2 avatars need 0.16.0. In Docker, also go back to the 0.15.0 image.
Settings: the first save on 0.16.0 (the settings UI, PUT /v1/settings, or oshi avatar use) writes [avatar] to oshi.toml and drops [live2d]. If both sections are in the file, [avatar] wins. OSHI_LIVE2D__* in the env file keeps working, and when an old and a new env name set the same key, OSHI_AVATAR__* wins. A live2d feature in users.default_features or on a user still counts; setting the feature on a user stores avatar and removes the old row. The one new setting is avatar.touch_cooldown_seconds (20, from 0 to 3600, env OSHI_AVATAR__TOUCH_COOLDOWN_SECONDS), and it applies to the next touch. An oshi.toml saved by 0.16.0 has no [live2d] section, so a 0.15.0 binary put back without the backup's oshi.toml ignores [avatar] and starts with no active model.
Spine runtimes are never in the repository, the release or the Docker image. The Spine Runtimes License (https://esotericsoftware.com/spine-runtimes-license) lets software use them only for people who hold their own Spine Editor license. The owner accepts it once, with the button in the Avatars view, the hint on the novel page, or oshi avatar spine --fetch --accept-license. The engine records the date and the license link, then downloads the versions the imported avatars need: one official build per version, pinned by sha256. 3.6 to 3.8 come from a fixed commit on GitHub; 4.0.31, 4.1.56 and 4.2.120 come from the npm package @esotericsoftware/spine-webgl. A download that does not match its pin is refused. Later imports fetch a missing version in the background without asking again. Offline, upload a build with oshi avatar spine --file spine-webgl.js --version 4.2 --accept-license. Cubism Core works as before and is served from /v1/avatars/runtimes/cubism-core.js now.
The engine does not decrypt game files and has no extractor. Rigs from games that pack or encrypt their assets have to be extracted with community tools first. Then upload the export as one zip, or drop its folder in the Avatars view. One zip is one avatar; a zip with both a Live2D model and Spine skeletons is refused.
If you keep your own templates in prompts/engine/: avatar_touch.md is new ("Just now: {{touches}} React to it as you would if it happened to you in person, with your line, a gesture, or both."). No existing template or model profile changed. A file in prompts/engine/ replaces only the built-in one with the same name, so there is nothing to copy.
Pages of the settings part now get script-src 'self' 'wasm-unsafe-eval', like the novel part already did, so the preview can run Cubism Core, which is WebAssembly. The keyword allows WebAssembly, not JS eval, and scripts still have to come from the same origin. Other parts keep script-src 'self'. If a reverse proxy adds its own Content-Security-Policy to the settings domain, add 'wasm-unsafe-eval' there too, or Live2D models will not draw in the preview.
Coming from 0.9.0 or earlier, the compose service rename described in the 0.10.0 notes still applies.
Downloads
oshi-x86_64-linux.tar.gzandoshi-aarch64-linux.tar.gzcontain theoshibinary. They need glibc 2.34 or newer.- The module tarballs are named
<id>-<version>-<target>.tar.gz. The telegram, browser and webchat extension tarballs are rebuilds of unchanged versions. - Each tarball has a
.sha256file, andSHA256SUMScovers all of them.store.jsonholds the store index entries for the modules in this release.
The Docker image is ghcr.io/oshiengine/oshi-engine:0.16.0 (also 0.16, beta, stable and latest) for amd64 and arm64.
Getting started
tar -xzf oshi-x86_64-linux.tar.gz
./oshi init
./oshi serve
With the engine running, ./oshi module install settings and ./oshi module install webchat add the settings and t...
Oshi Engine 0.15.0
This release finishes milestone 0.15, Random events. Now and then she plans something of her own: karaoke with friends on Saturday, a museum on Sunday, the dentist. She fits it into her free time, invites people, talks about it before and after, and remembers how it went.
- Once a day, at a time between 10:00 and 22:00 when she can look at her phone, the life tick rolls whether she plans an event. The draw comes from the seed and the date, so a given day rolls the same on every run. Her sociability, how full her week is and her mood scale the chance: the rate is
life.events_per_week / 7 × (0.2 + 1.8 × sociability), so with the default of 2 a simulated year gave 0.7, 1.8 and 2.6 events a week at sociability 0.1, 0.5 and 0.9.life.max_events_per_weekcaps the events made in seven days. The day's roll is stored, so a restart does not roll again. - When the roll says yes, the background model plans one with
event_plan.md. It picks from her free time in the next seven days, starting at least three hours ahead: only stretches the generator filled in, never a block of her week, an activity, sleep, work or a commute. It also gets up to twelve people she could invite. A plan that names a time or a person that was not offered is dropped or trimmed, and each one records anevent_droppedwatcher incident. - An event is an activity decided by
event, with a kind (social, family, hobby, errand, appointment, culture, sport or trip), a note, guests with their answers, and how it went. It shows in her day, "Your plans", her schedule feed and novel mode like any other activity. - She invites users with a message she writes first. Only users who are enabled, not guests, have the
initiativefeature on and can be reached on an app are offered, and people she heard about in someone else's chats never are. The person answers in the chat. She notes the answer with the newanswer_invitetool, and when the model answers only in words, the appraisal after her reply takes a yes, no or maybe that their words back. People of her own life are on no app, so they answer at once from the seed, yes more often the closer they are. - She brings an event up once before it (from 17:00 the day before, with someone who is coming, else someone close) and once after it (with someone who was not invited).
- When it ends,
event_outcome.mdasks for two or three sentences in her voice about how it went. The text passes the sanitizer and the memory guard, is kept on the event, and is in her prompt ("Right now") for three days. It is never written to memory directly. It becomes a memory only through what she tells someone in a chat, like anything else she says. - Deleting a user still deletes the plans they joined, but not her own events. The event stays and the person leaves its guest list. With
keep_contactnothing is deleted and they stay on the list as someone she knows. - The Activities view in the settings UI has a "Her own plans" card. It shows today's roll as a bar (the fill is the chance, a mark shows the draw once she decided) and has a "Plan one now" button. Event cards show the kind, the note, the guests with their answers (click one to set it by hand) and how it went. Her day and the week preview mark events with a star.
- API:
GETandPOST /v1/character/events,GET,PATCHandDELETE /v1/character/events/{id}. Reading needscharacter:readandusers:read, and user keys are refused; planning and changes needcharacter:writeandusers:read.activity_changedevents have four new changes:invited,answered,outcomeanddeleted. Keys withoutusers:readget events without their guests on/v1/character/lifeand the activity routes. CLI:oshi life events [--date]andoshi life event plan|change|cancel|delete. - New settings:
life.events(on),life.events_per_week(2) andlife.max_events_per_week(4), with env namesOSHI_LIFE__EVENTS,OSHI_LIFE__EVENTS_PER_WEEKandOSHI_LIFE__MAX_EVENTS_PER_WEEK. A change applies at the next roll.
Modules in this release
| Module | Version | Needs core | Builds |
|---|---|---|---|
| telegram | 0.2.4 | 0.2.0 or newer | x86_64, aarch64 |
| settings | 0.15.0 | 0.15.0 or newer | any |
| webchat | 0.10.0 | 0.10.0 or newer | any |
| webchat-themes | 0.5.0 | 0.5.0 or newer | any |
| webchat-stickers | 0.5.0 | 0.5.0 or newer | any |
| webchat-attachments | 0.5.0 | 0.5.0 or newer | any |
| novel | 0.11.0 | 0.10.0 or newer | any |
| browser | 0.7.2 | 0.3.0 or newer | x86_64, aarch64 |
settings is the only new version. telegram, webchat, novel, browser and the three webchat extensions are unchanged; the store keeps the artifacts of the release that first shipped them.
Settings 0.15.0 needs core 0.15.0. The Activities view reads /v1/character/events, which an older core answers with 404, and its new text comes from the engine, so on core 0.14.0 the "Her own plans" card would show an error and raw string names. Settings 0.14.0 keeps working on core 0.15.0 until it updates, and shows events there as ordinary activities. The unchanged modules do not read activities.
Upgrading
Run oshi update apply, or in Docker pull the new image. With modules.auto_update on (the default), the next module check installs settings 0.15.0. It waits for core 0.15.0: on an older core the store lists it as "needs core 0.15.0" and settings stays on 0.14.0.
This release has a database migration. Step 9 adds two tables with their indexes: life_events (for each event its kind, note, whether the roll or the owner made it, the day of the roll, how it went, and who she talked to about it before and after) and life_event_guests (who she invited to each event, their answer, and when and on which app she asked). It runs by itself the first time 0.15.0 starts, in one transaction, and leaves existing data alone; nothing that 0.14.0 reads is changed or dropped. The updater snapshots the database into the pre-update backup before it replaces the binary. If 0.15.0 fails its health check, the launcher restores that backup, so the rollback undoes the migration too. To go back by hand later, find the backup with oshi update backups, stop the engine and run oshi update restore <dir>. That brings back the 0.14.0 binary and database, and events, invites and answers made since the update are lost. In Docker, also go back to the 0.14.0 image.
Random events are on by default (life.events = true), so she starts rolling once a day after the update. To turn them off, switch off "Plans events of her own" under Life in the settings UI, set life.events = false in oshi.toml, or set OSHI_LIFE__EVENTS=false in the env file, which also locks the setting. A roll already made that day and events already planned stay; delete one in the Activities view or with oshi life event delete <id>.
She now writes first for two new reasons: to invite someone, and to talk about an event before or after. Both are ordinary first messages under the existing limits. They count toward life.max_initiatives_per_day and life.min_initiative_gap_minutes with every other first message, and the person's quiet hours (life.user_quiet_hours), their initiative feature and her availability still apply. Someone with initiative off is never invited. With life.initiative off she still plans events and her own people still answer, but users she picked are never asked and she does not bring events up.
If you keep your own templates in prompts/engine/: five templates are new (event_plan.md, event_invite.md, event_before.md, event_after.md and event_outcome.md), and no existing template or model profile changed, core.md included. A file in prompts/engine/ replaces only the built-in one with the same name, so there is nothing to copy. Copy a new one from assets/prompts/engine/ only if you want to change it. The appraisal rule for invite answers and the line in "Right now" about where an invite stands are built into the engine.
Coming from 0.9.0 or earlier, the compose service rename described in the 0.10.0 notes still applies.
Downloads
oshi-x86_64-linux.tar.gzandoshi-aarch64-linux.tar.gzcontain theoshibinary. They need glibc 2.34 or newer.- The module tarballs are named
<id>-<version>-<target>.tar.gz. The telegram, webchat, novel, browser and webchat extension tarballs are rebuilds of unchanged versions. - Each tarball has a
.sha256file, andSHA256SUMScovers all of them.store.jsonholds the store index entries for the modules in this release.
The Docker image is ghcr.io/oshiengine/oshi-engine:0.15.0 (also 0.15, beta, stable and latest) for amd64 and arm64.
Getting started
tar -xzf oshi-x86_64-linux.tar.gz
./oshi init
./oshi serve
With the engine running, ./oshi module install settings and ./oshi module install webchat add the settings and the chat. Open http://127.0.0.1:7420/settings and create the owner login with the setup code from oshi init. Before talking to her, set llm.providers.local.base_url and llm.chat.model in oshi.toml (or the env file) to an OpenAI-compatible server.
With Docker, docker-compose.yml starts the engine with the web chat and its extensions, novel mode and the settings; the setup code is in the log (docker compose logs oshi-engine). docker-compose-full.yml adds every module, SearXNG and the headless Chrome, with SEARXNG_SECRET set in .env.
All changes: v0.14.0...v0.15.0
Oshi Engine 0.14.0
This release finishes milestone 0.14, Contact list. She now keeps one list of everyone she knows: each user, and the people of her own life who have no account. Each person has her notes about them, the relationship, a home, a birthday and the plans she has with them. She can look someone up in a chat, and what she tells depends on who is asking.
- One
contactstable holds everyone. A user's contact has the user's id. The relationship numbers (affection, trust, familiarity, irritation, priority bias) and her notes about a user moved into the contact, so each lives in one place. A contact also holds other names, who the person is to her, how she met them, a home and a birthday, and people with no account get contacts of their own. look_up_persongives her a card about someone. The owner in a private chat, the person themselves and whoever told her about someone get the whole card. Everyone else gets what she would say about a friend: the name, who they are to her, how she knows them and the plans with them, never her notes, the relationship, memories or a user's apps and home. People she heard about in one user's chats do not exist for anyone else, and in a group chat nobody gets more than the short card.- After a private conversation, a second background call (
people_extract.md, on the background model) lists the people named in it. The engine drops names that are not in the messages, and one conversation adds at most 3 new contacts. People a user names are recorded as learned from that user. Group chats add nobody. - Memories are tied to people by name, in the engine and without a model call: a memory is tied when every word of a contact's name or other name appears in it. The links are kept in
contact_memories, so deleting a contact leaves the memory alone. - Deleting a user now offers a choice. The default still deletes their contact, and the people she heard of only from them.
keep_contactkeeps them as someone she knows who is no longer a user, with notes, numbers, home and plans; chats, memories and opinions still go. - Activities and places point at contacts.
withinstart_activitymatches contact names and other names. Place files and API bodies that useuserstill load, and/v1/placesstill returnsuseron a user's home. send_messagehas an optionalto. When the model names someone else, she is told she cannot write to them from there.- The settings UI has a Contacts view next to Users, with search, filters and a card per person showing notes, home, apps, plans together and tied memories. Relationship numbers are bars for users and sliders for her own people. The trash button on a user asks whether to delete everything or keep the contact, and Places picks whose home a place is from the contacts.
- API:
GETandPOST /v1/contacts,GET /v1/contacts/lookup,GET,PATCHandDELETE /v1/contacts/{id},GETandPUT /v1/contacts/{id}/notes,GETandPOST /v1/contacts/{id}/memories,DELETE /v1/contacts/{id}/memories/{memory}, andcontact_changedevents. Reading needsusers:read, plusmemory:readfor notes, memories and the look-up. Changing a contact needsusers:write, and its notes alsomemory:write; tying or untying a memory needsmemory:write.DELETE /v1/users/{id}takes?keep_contact=true./v1/users/{id}/relationshipand/v1/users/{id}/profilestill work and read and write the contact, so 0.13 settings UIs and CLIs keep working. CLI:oshi contact list|show|add|notes|lookup|removeandoshi user remove --keep-contact.
Modules in this release
| Module | Version | Needs core | Builds |
|---|---|---|---|
| telegram | 0.2.4 | 0.2.0 or newer | x86_64, aarch64 |
| settings | 0.14.0 | 0.14.0 or newer | any |
| webchat | 0.10.0 | 0.10.0 or newer | any |
| webchat-themes | 0.5.0 | 0.5.0 or newer | any |
| webchat-stickers | 0.5.0 | 0.5.0 or newer | any |
| webchat-attachments | 0.5.0 | 0.5.0 or newer | any |
| novel | 0.11.0 | 0.10.0 or newer | any |
| browser | 0.7.2 | 0.3.0 or newer | x86_64, aarch64 |
settings is the only new version. telegram, webchat, novel, browser and the three webchat extensions are unchanged; the store keeps the artifacts of the release that first shipped them.
Settings 0.14.0 needs core 0.14.0. The Contacts view reads /v1/contacts, which an older core answers with 404, and its text comes from the engine. On core 0.13.0, Places would also drop whose home a place is on the next save, since it sends contact and the older core only knows user, and keeping the contact when deleting a user would delete it anyway. Settings 0.13.0 keeps working on core 0.14.0 until it updates. The unchanged modules do not use the routes or fields that moved.
Upgrading
Run oshi update apply, or in Docker pull the new image. With modules.auto_update on (the default), the next module check installs settings 0.14.0. It waits for core 0.14.0: on an older core the store lists it as "needs core 0.14.0" and settings stays on 0.13.0. No settings or env names were added.
The first start of 0.14.0 migrates the database (step 8), in one transaction. It creates contacts with one contact per user, holding the user's name and the numbers from relationships (a user without a row gets the defaults, as before). It copies the people of each activity from activity_people into activity_contacts, adds an empty contact_memories table, and then drops relationships and activity_people. If a statement fails, the start fails and the database stays as it was.
On the same start the engine moves her notes about each user into their contact: memory/users/<id>.md becomes the notes and memory/users/<id>.md.prev the previous version. Both files are then moved to memory/users/migrated/, so they are kept and a later start does not import them again. A file whose user no longer exists stays where it is, and so does a file that cannot be moved, with a warning in the log.
Every core update (oshi update apply, the settings UI, the automatic check, or a new Docker image) takes a backup before 0.14.0 starts. It holds a copy of the database from before the migration, oshi.toml, character/, memory/, prompts/ and module state. If 0.14.0 does not report healthy within updates.health_timeout_secs, or exits, the launcher restores that backup and starts 0.13.0 again. The database is then the one from before step 8, and the notes files are back in memory/users/. Swapping the binary by hand takes no backup, so copy the data directory first if you update that way.
To go back to 0.13.0 by hand later, putting back the old binary is not enough: 0.13.0 reads the relationships and activity_people tables, which the migration dropped. Find the backup with oshi update backups while the engine runs, then stop the engine and run oshi update restore <home>/backups/<time>-pre-update-v0.13.0. That restores the 0.13.0 binary, the database from before the migration and the whole memory/ directory. Backups include memory/, so the notes files are back in memory/users/ and nothing needs moving by hand. Settings goes back to 0.13.0 with its restored state, since a module keeps its previous version on disk (unless settings has updated again since). In Docker, also go back to the 0.13.0 image, because the launcher runs the newer of the image's binary and /data/bin/oshi.
Restoring loses everything that happened after the update: messages, memories, contacts and notes. Old backups are pruned to updates.keep_backups (3 by default), so copy this one elsewhere if you want to keep the way back open. If you restore a database copy of your own instead, also move the files in memory/users/migrated/ back to memory/users/.
If you keep your own templates in prompts/engine/: people_extract.md is new, and core.md changed in one line. Its Tools paragraph now lists "look up someone you know" among her tools. A core.md in prompts/engine/ replaces the built-in one whole, so add those words to yours; the tool is offered either way, but without them the prompt does not point her at it. No other template or model profile changed.
Coming from 0.9.0 or earlier, the compose service rename described in the 0.10.0 notes still applies.
Downloads
oshi-x86_64-linux.tar.gzandoshi-aarch64-linux.tar.gzcontain theoshibinary. They need glibc 2.34 or newer.- The module tarballs are named
<id>-<version>-<target>.tar.gz. The telegram, webchat, novel, browser and webchat extension tarballs are rebuilds of unchanged versions. - Each tarball has a
.sha256file, andSHA256SUMScovers all of them.store.jsonholds the store index entries for the modules in this release.
The Docker image is ghcr.io/oshiengine/oshi-engine:0.14.0 (also 0.14, beta, stable and latest) for amd64 and arm64.
Getting started
tar -xzf oshi-x86_64-linux.tar.gz
./oshi init
./oshi serve
With the engine running, ./oshi module install settings and ./oshi module install webchat add the settings and the chat. Open http://127.0.0.1:7420/settings and create the owner login with the setup code from oshi init. Before talking to her, set llm.providers.local.base_url and llm.chat.model in oshi.toml (or the env file) to an OpenAI-compatible server.
With Docker, docker-compose.yml starts the engine with the web chat and its extensions, novel mode and the settings; the setup code is in the log (docker compose logs oshi-engine). docker-compose-full.yml adds every module, SearXNG and the headless Chrome, with SEARXNG_SECRET set in .env.
All changes: v0.13.0...v0.14.0
Oshi Engine 0.13.0
This release finishes milestone 0.13, Custom day plan. The owner can now set her week as blocks, such as a job, classes, the gym or family time. The blocks are placed first and the engine fills the rest of each day around them, the same way for a given seed and date.
- Her week is
character.weekin the profile (envOSHI_CHARACTER__WEEK), a list of blocks. A block has a title, a kind, a shape (fixed, classes or flexible), a start and an end, and the days it falls on. It can repeat every N weeks, fall on the nth weekday of the month or the last one, run between two dates, or happen on one day only.skip_datescancels it for single days, and a change for one day is a one-day block next to the usual one. - Each block has its own
jitter_minutes(start and end move a little from day to day),skip_chance,phone(how often she checks the phone there) andwindow(how long her chat windows there last: short, normal or long). Each block draws from its own random stream, so changing one leaves the others where they were. - A block can carry a prompt that she reads in "Right now" while she is in it (cleaned and cut at 600 characters), a novel mode scene that wins over the one matched by activity, and a place. With
commute_from_placethe commute is the trip between her home and that place, looked up once when the week is saved, so the plan never waits for the network. - Where blocks overlap, a one-day block beats a date range, which beats the rest; between equals the later one in the list wins. A sleep block sets the night it covers. A short block on a free day keeps her sleep-in, and the generator leaves out exercise, hobbies, chores and evenings out on days a block already covers them.
- Ten presets fill every field of a block: full-time job, part-time job, side hustle, school or university, shift work (three rotating blocks), gym, classes, family time, free time and sleep.
- The settings UI has a week editor in the Character view, behind a Her / Week switch in the header (a fourth tab on narrow screens). The grid shows her blocks solid, filled-in time hatched and activities with an accent edge, and marks blocks that gave way to another or were skipped. The block form previews the whole week, so you see where a block lands and what it pushes before you save it. Clicking a block in her day opens what made it.
- API:
GET,PUTandDELETE /v1/character/week,POST /v1/character/week/blocks,PUTandDELETE /v1/character/week/blocks/{id},GETandPOST /v1/character/week/preview(thePOSTtakes an unsaved draft) andGET /v1/character/presets. Reading needscharacter:readand refuses user keys; saving needscharacter:write. Plan blocks have afixedfield that names the block of her week. CLI:oshi life week [--date] [--days]andoshi life block list|presets|add --preset|remove|reset.
Modules in this release
| Module | Version | Needs core | Builds |
|---|---|---|---|
| telegram | 0.2.4 | 0.2.0 or newer | x86_64, aarch64 |
| settings | 0.13.0 | 0.13.0 or newer | any |
| webchat | 0.10.0 | 0.10.0 or newer | any |
| webchat-themes | 0.5.0 | 0.5.0 or newer | any |
| webchat-stickers | 0.5.0 | 0.5.0 or newer | any |
| webchat-attachments | 0.5.0 | 0.5.0 or newer | any |
| novel | 0.11.0 | 0.10.0 or newer | any |
| browser | 0.7.2 | 0.3.0 or newer | x86_64, aarch64 |
settings is the only new version. telegram, webchat, novel, browser and the three webchat extensions are unchanged; the store keeps the artifacts of the release that first shipped them.
Settings 0.13.0 needs core 0.13.0. The Character view reads /v1/character/week when it opens, which an older core answers with 404, and its text comes from the engine, so on core 0.12.0 the whole view would fail to open. The unchanged modules work with core 0.13.0 as they are: they ignore the new fixed field, and the engine picks a block's scene, so the novel page shows it through the routes it already uses.
Upgrading
Run oshi update apply, or in Docker pull the new image. With modules.auto_update on (the default), the next module check installs settings 0.13.0. It waits for core 0.13.0: on an older core the store lists it as "needs core 0.13.0" and settings stays on 0.12.0.
There is no database migration. Her week is kept in oshi.toml.
Existing installs keep the same days. Until you save a week, character.week is unset and her occupation plans her days with the same code as in 0.12.0. The editor and GET /v1/character/week show the blocks the occupation stands for as her first blocks, marked as not saved. Adding, changing or removing a block in the editor (or with oshi life block) saves the whole week, and from then on the blocks plan her days. oshi life block reset, or the reset button in the editor, forgets the saved week and goes back to the occupation.
For an office, remote, student, freelance, creative or unemployed occupation, the saved blocks give the same plans as before. Shift work is the exception. It becomes three blocks (morning, afternoon and night), each every third week, anchored to follow the old rotation within the calendar year you save the week in. The old rotation restarted with the ISO week number each January, so from the next year on her shifts can fall in different weeks than they would have before. Breaks and days off on shift days come from the new blocks' own draws and can differ even within that year.
OSHI_CHARACTER__WEEK in the env file sets the whole week as one locked value. The editor then shows it read-only, and saves leave it alone.
Restoring the pre-update backup by hand (oshi update restore <dir>) also brings back the 0.12.0 oshi.toml, so a week saved after the update is lost.
Coming from 0.9.0 or earlier, the compose service rename described in the 0.10.0 notes still applies.
Downloads
oshi-x86_64-linux.tar.gzandoshi-aarch64-linux.tar.gzcontain theoshibinary. They need glibc 2.34 or newer.- The module tarballs are named
<id>-<version>-<target>.tar.gz. The telegram, webchat, novel, browser and webchat extension tarballs are rebuilds of unchanged versions. - Each tarball has a
.sha256file, andSHA256SUMScovers all of them.store.jsonholds the store index entries for the modules in this release.
The Docker image is ghcr.io/oshiengine/oshi-engine:0.13.0 (also 0.13, beta, stable and latest) for amd64 and arm64.
Getting started
tar -xzf oshi-x86_64-linux.tar.gz
./oshi init
./oshi serve
With the engine running, ./oshi module install settings and ./oshi module install webchat add the settings and the chat. Open http://127.0.0.1:7420/settings and create the owner login with the setup code from oshi init. Before talking to her, set llm.providers.local.base_url and llm.chat.model in oshi.toml (or the env file) to an OpenAI-compatible server.
With Docker, docker-compose.yml starts the engine with the web chat and its extensions, novel mode and the settings; the setup code is in the log (docker compose logs oshi-engine). docker-compose-full.yml adds every module, SearXNG and the headless Chrome, with SEARXNG_SECRET set in .env.
All changes: v0.12.0...v0.13.0
Oshi Engine 0.12.0
This release finishes milestone 0.12, Activities. She can now plan things on top of her day plan, like sushi at 8 with someone or a run right now, with the trips there and back. The rest of the engine follows those plans, so while she is out she is slower to answer and says goodbye when she leaves.
- An activity has a title, a kind, a start and an end, an optional place, the people who join and its parts. Trips there and back are parts too. They are worked out once when the activity is made or moved: made-up places need no network, real ones use a kept route or a lookup that gives up after 6 seconds and falls back to the distance guess. One activity runs at a time, and a new one that overlaps is refused with the name of the other one. Two kinds are new,
errandandouting. - While an activity runs, its parts replace the plan blocks, work included. Presence, reply delays, availability windows, goodbyes ("time to leave for sushi"), "Right now", her scene in novel mode and her schedule feed all follow it. Availability is at most 0.35 while she is out and 0.3 with company, so going out ends a phone chat. When it ends, the plan takes over again.
- Her new tools
start_activity,change_activityandactivity_historysit behind a newactivitiesfeature, on by default since they need no network. The first two are offered in private chats only, and a plan made with one person can only be changed in a chat with that person. Her prompt shows the activity in "Right now" and her plans for the next two days. - When she agrees to a plan in words and skips the tool, the appraisal that already runs after each private exchange catches it, with no extra model call. A new plan is kept only when a word of its title and its hour were said; a new time for one of her coming plans moves that plan. These are stored as
caught. - History is kept per day, with plan blocks and activities together and cancelled ones marked. Past activities are deleted after
life.activity_history_days(90 by default, 0 keeps them all). - The schedule feed has one entry per activity, with its parts in the description.
- API:
GETandPOST /v1/activities,GET /v1/activities/history,GET,PATCHandDELETE /v1/activities/{id},activitiesinGET /v1/character/life, and anactivity_changedevent for admins. Reading activities needsusers:readas well ascharacter:read, since they name who joins. CLI:oshi life activities [--date]andoshi life activity add|change|cancel. - The settings UI has an Activities view. The activity running now and the planned ones are cards with their parts as a bar that fills with time; you can move one, change its length, resize or skip a part, call it off or stop it in place. A form with a live preview adds a new one, and her past days are shown one date at a time. The day timeline in the Overview and the Character view shows activities as brackets over the blocks they replace, and "Doing now" shows the activity, the part she is in and its parts bar.
Modules in this release
| Module | Version | Needs core | Builds |
|---|---|---|---|
| telegram | 0.2.4 | 0.2.0 or newer | x86_64, aarch64 |
| settings | 0.12.0 | 0.12.0 or newer | any |
| webchat | 0.10.0 | 0.10.0 or newer | any |
| webchat-themes | 0.5.0 | 0.5.0 or newer | any |
| webchat-stickers | 0.5.0 | 0.5.0 or newer | any |
| webchat-attachments | 0.5.0 | 0.5.0 or newer | any |
| novel | 0.11.0 | 0.10.0 or newer | any |
| browser | 0.7.2 | 0.3.0 or newer | x86_64, aarch64 |
settings is the only new version. telegram, webchat, novel, browser and the three webchat extensions are unchanged; the store keeps the artifacts of the release that first shipped them.
Settings 0.12.0 needs core 0.12.0. The Activities view reads /v1/activities, which an older core answers with 404, and its text comes from the engine, so on core 0.11.0 the view would fail and show raw string names. The unchanged modules work with core 0.12.0 as they are: activity_changed only goes to admins, and the novel page shows her activity in the text field it already has ("sushi · eating").
Upgrading
Run oshi update apply, or in Docker pull the new image. With modules.auto_update on (the default), the next module check installs settings 0.12.0. It waits for core 0.12.0: on an older core the store lists it as "needs core 0.12.0" and settings stays on 0.11.0.
This release has a database migration. Step 7 adds two tables with their indexes: activities (title, kind, start and end, status, who decided it, the person and chat it was made with, and its parts as JSON) and activity_people (who joins each one). It runs by itself the first time 0.12.0 starts, in one transaction, and leaves existing data alone. The updater snapshots the database into the pre-update backup before it replaces the binary. If 0.12.0 fails its health check, the launcher restores that backup, so the rollback undoes the migration too. Restoring the backup by hand later (oshi update restore <dir>) also brings back the 0.11.0 database, and activities made since the update are lost.
The activities feature is on by default, so she can make plans in every private chat. Turn it off per person with oshi user feature <user> activities off or in the Users view, or for everyone with users.default_features = { activities = false } (env OSHI_USERS__DEFAULT_FEATURES__ACTIVITIES=false). life.activity_history_days (env OSHI_LIFE__ACTIVITY_HISTORY_DAYS) sets how long past activities are kept.
If you keep your own core.md in prompts/engine/, it does not have the new line that tells her to put plans in her day with the activity tool. Copy it from assets/prompts/engine/core.md.
Coming from 0.9.0 or earlier, the compose service rename described in the 0.10.0 notes still applies.
Downloads
oshi-x86_64-linux.tar.gzandoshi-aarch64-linux.tar.gzcontain theoshibinary. They need glibc 2.34 or newer.- The module tarballs are named
<id>-<version>-<target>.tar.gz. The telegram, webchat, novel, browser and webchat extension tarballs are rebuilds of unchanged versions. - Each tarball has a
.sha256file, andSHA256SUMScovers all of them.store.jsonholds the store index entries for the modules in this release.
The Docker image is ghcr.io/oshiengine/oshi-engine:0.12.0 (also 0.12, beta, stable and latest) for amd64 and arm64.
Getting started
tar -xzf oshi-x86_64-linux.tar.gz
./oshi init
./oshi serve
With the engine running, ./oshi module install settings and ./oshi module install webchat add the settings and the chat. Open http://127.0.0.1:7420/settings and create the owner login with the setup code from oshi init. Before talking to her, set llm.providers.local.base_url and llm.chat.model in oshi.toml (or the env file) to an OpenAI-compatible server.
With Docker, docker-compose.yml starts the engine with the web chat and its extensions, novel mode and the settings; the setup code is in the log (docker compose logs oshi-engine). docker-compose-full.yml adds every module, SearXNG and the headless Chrome, with SEARXNG_SECRET set in .env.
All changes: v0.11.0...v0.12.0
Oshi Engine 0.11.0
This release finishes milestone 0.11, Travel. She now knows places, real ones with coordinates and made-up ones on a board, and can work out how long it takes to get from one to another and which way she would go. In novel mode, moving between scenes at different places takes as long as the trip.
- Places are files in
character/places/: a real place has an address and coordinates, a made-up one a position on a board in metres. A place can be her home, her work or a person's home, and a novel scene can say which place it is at (place). Reading places through/v1/placesneedsusers:readas well ascharacter:read, since they say where people live. - The new
oshi-travelcrate holds places, distances, estimates and the MOTIS client. Real trips are looked up on Transitous (travel.router_url, a public MOTIS 2 server), with walking, cycling, driving and public transport in one request. Answers are kept per pair of points, weekday and half hour for 14 days, and lookups stop attravel.max_requests_per_day(300). Without a lookup the trip is guessed from the distance, and her answer says it is rough. - Her new
travel_timetool takes a place name or an address, with an optional start, way and departure time. An address she looks up is saved as a learned place.character.travelsays whether she has a bike, a car, a scooter or a transit pass. She walks when the walk is 15 minutes or less, and otherwise picks the way with the lowest time weighted by effort. Once her home is set, her prompt says where she lives and how she gets around. - Novel mode: the user is on the way until they arrive, and their messages wait until then. With
go_toshe and the user travel together and keep talking. The novel page blurs the scene ahead and counts down, and the scene picker shows about how many minutes away each scene is. Trips undertravel.novel_min_minutes(2) and scenes without a place stay instant, so existing worlds work as before. - The settings UI has a Places view: the list of places, a map for real places (search an address or click to put the pin), a board for made-up places with the distance and walking time between pins, and a route tester that shows what her tool would answer. The Character view has a section for how she gets around, and Settings a travel section.
- CLI:
oshi place list|show|add|scene|removeandoshi travel route|find|usage. API:GET /v1/travel,GET /v1/travel/geocode,POST /v1/travel/route, andtripin the novel state andscene_changed. - Whereabouts notes match places as well as scenes, so "heading to the park" finds a place named Park and the scene at it.
Modules in this release
| Module | Version | Needs core | Builds |
|---|---|---|---|
| telegram | 0.2.4 | 0.2.0 or newer | x86_64, aarch64 |
| settings | 0.11.0 | 0.11.0 or newer | any |
| webchat | 0.10.0 | 0.10.0 or newer | any |
| webchat-themes | 0.5.0 | 0.5.0 or newer | any |
| webchat-stickers | 0.5.0 | 0.5.0 or newer | any |
| webchat-attachments | 0.5.0 | 0.5.0 or newer | any |
| novel | 0.11.0 | 0.10.0 or newer | any |
| browser | 0.7.2 | 0.3.0 or newer | x86_64, aarch64 |
settings and novel are new versions. telegram, webchat, browser and the three webchat extensions are unchanged; the store keeps the artifacts of the release that first shipped them.
Settings 0.11.0 needs core 0.11.0. The Places view reads /v1/places and /v1/travel, its text comes from the engine, and the map needs the engine to allow the tile host, so on an older core the view would fail and show raw string names. Novel 0.11.0 still runs on core 0.10.0: the trip fields are optional, and without them the page shows no trip card and no minutes in the picker, as in 0.10.0.
Upgrading
Run oshi update apply, or in Docker pull the new image. There is no database migration: places are files in character/places/, and kept routes and the day's lookup count go in the existing settings table. With modules.auto_update on (the default), the next module check installs the new module versions. Settings 0.11.0 waits for core 0.11.0: on an older core the store lists it as "needs core 0.11.0" and settings stays on 0.10.0.
The travel feature is off by default, like browser, because each call of her tool can reach an outside server. Turn it on per person with oshi user feature <user> travel on or in the Users view, or for everyone with users.default_features = { travel = true } (env OSHI_USERS__DEFAULT_FEATURES__TRAVEL=true). She also needs places to talk about: add her home in the Places view or with oshi place add --name Home --address "..." --role home, and say how she gets around in the Character view.
Routes and addresses come from Transitous, which allows non-commercial use only. Its routes are built from OpenStreetMap and open timetables; the sources and their attribution are at https://transitous.org/sources/. The engine identifies itself with its version and the repository address and stays under the daily cap. You can run your own MOTIS 2 server instead and point travel.router_url at it (travel.allow_private = true when it is on a private address). travel.enabled = false stops every lookup, including those from the Places view, the CLI and novel trips between real places; trips are then guessed from the distance.
The map in the Places view loads its tiles from OpenStreetMap's tile server (https://tile.openstreetmap.org/{z}/{x}/{y}.png), straight from the browser that has the view open. Set travel.map_tiles_url (env OSHI_TRAVEL__MAP_TILES_URL) to use another tile server, or leave it empty to turn the map off. The settings page only allows images from that one tile host. Made-up places and the board need no network.
Coming from 0.9.0 or earlier, the compose service rename described in the 0.10.0 notes still applies.
Downloads
oshi-x86_64-linux.tar.gzandoshi-aarch64-linux.tar.gzcontain theoshibinary. They need glibc 2.34 or newer.- The module tarballs are named
<id>-<version>-<target>.tar.gz. The telegram, webchat, browser and webchat extension tarballs are rebuilds of unchanged versions. - Each tarball has a
.sha256file, andSHA256SUMScovers all of them.store.jsonholds the store index entries for the modules in this release.
The Docker image is ghcr.io/oshiengine/oshi-engine:0.11.0 (also 0.11, beta, stable and latest) for amd64 and arm64.
Getting started
tar -xzf oshi-x86_64-linux.tar.gz
./oshi init
./oshi serve
With the engine running, ./oshi module install settings and ./oshi module install webchat add the settings and the chat. Open http://127.0.0.1:7420/settings and create the owner login with the setup code from oshi init. Before talking to her, set llm.providers.local.base_url and llm.chat.model in oshi.toml (or the env file) to an OpenAI-compatible server.
With Docker, docker-compose.yml starts the engine with the web chat and its extensions, novel mode and the settings; the setup code is in the log (docker compose logs oshi-engine). docker-compose-full.yml adds every module, SearXNG and the headless Chrome, with SEARXNG_SECRET set in .env.
All changes: v0.10.0...v0.11.0
Oshi Engine 0.10.0
This release finishes milestone 0.10, Orientation. She now knows whether the people she talks with are around: online, away or offline on each app, who is standing in front of her in novel mode, and where someone said they were going. It also has the fixes found while testing 0.9 by hand.
- She keeps, per person and app, whether they are online, idle or offline, and her prompt has a line about it. What she sees follows the app: the web chat shows online and away, Telegram online and last seen (from their last message, since bots get no presence there), novel mode and the terminal nothing.
- Web chat and novel pages go idle after
users.client_idle_minuteswithout input (default 10, envOSHI_USERS__CLIENT_IDLE_MINUTES). The page dims and says what happened; any key or tap brings it back. A changed value reaches open pages without a reload. - In novel mode she knows who is in front of her: she is awake, they share the scene, and their page is open and in use. A text from someone in front of her skips the phone (no reply delay, no availability check) and is marked as typed in front of her. She greets someone who walks in without a word, within the usual initiative limits.
- She remembers where someone said they were going with the new
note_whereaboutstool. When the model skips the tool, the appraisal after each private exchange catches it, and a place is kept only when the person wrote it. In novel mode she also notes where she saw them walk off to. - The settings UI shows who is around on the overview, a state dot per user and app in the Users list, and a "Where they are" card with the whereabouts note on each user's page.
- Modules can say that their service refuses them (
POST /v1/modules/self/health,report_healthin the SDK). Telegram reports it when another instance polls the same bot token (409), when a webhook is set on the token, or when Telegram refuses the token, and retries after 10 s, doubling up to 2 minutes. The module shows as failing in the settings UI,oshi statusandoshi doctor. - Deleting a person also deletes their chats, messages and memories, their profile notes and the opinions she formed with them.
DELETE /v1/chats/{id}(needsusers:writeandmemory:write) deletes one chat, and the CLI hasoshi user chatsandoshi user remove-chat. PUT /v1/character/profilemerges: fields left out keep their value,nullclears an optional field, and an unknown field gets 400.- The compose services are now
oshi-engine,oshi-searxngandoshi-browser, so they do not clash with other stacks ondokploy-network. - Tool calls written as
name>{...}</name>(Llama 3.1 8B does this) are read as calls, so the markup no longer reaches the chat.
Modules in this release
| Module | Version | Needs core | Builds |
|---|---|---|---|
| telegram | 0.2.4 | 0.2.0 or newer | x86_64, aarch64 |
| settings | 0.10.0 | 0.10.0 or newer | any |
| webchat | 0.10.0 | 0.10.0 or newer | any |
| webchat-themes | 0.5.0 | 0.5.0 or newer | any |
| webchat-stickers | 0.5.0 | 0.5.0 or newer | any |
| webchat-attachments | 0.5.0 | 0.5.0 or newer | any |
| novel | 0.10.0 | 0.10.0 or newer | any |
| browser | 0.7.2 | 0.3.0 or newer | x86_64, aarch64 |
telegram, settings, webchat and novel are new versions. browser and the three webchat extensions are unchanged; the store keeps the artifacts of the release that first shipped them.
Settings, web chat and novel 0.10.0 need core 0.10.0. They read presence from the engine, and their text comes from the engine too, so on an older core the new cards and the idle screen would show raw string names. Telegram 0.2.4 still runs on any core from 0.2.0: an older core answers its health report with 404, and the module logs a warning and keeps polling with the same backoff.
Upgrading
Run oshi update apply, or in Docker pull the new image. There is no database migration; presence and whereabouts are kept in the existing settings table. With modules.auto_update on (the default), the next module check installs the new module versions. Settings, web chat and novel 0.10.0 wait for core 0.10.0: on an older core the store lists them as "needs core 0.10.0" and they stay on their current versions.
The compose services have new names. engine is now oshi-engine, and in the full file searxng and browser are oshi-searxng and oshi-browser. Commands change with them, for example docker compose logs oshi-engine and docker compose exec oshi-engine oshi status. The first time you start the new file, run docker compose up -d --remove-orphans, so the old engine container is removed instead of running next to the new one on the same volume. The volume keeps its name and your data.
On Dokploy, installs made with 0.9.0 or earlier have their domains on the engine service. Before you deploy the new compose file, open the Domains tab and change each domain's service from engine to oshi-engine, then deploy. Dokploy refuses to deploy a domain whose service is not in the file. The deploy removes the old container and keeps the volume.
People deleted before 0.10.0 left their chats behind with no user, and those chats could still reach her memory. oshi user chats lists every chat; remove the leftovers with oshi user remove-chat <chat>.
Downloads
oshi-x86_64-linux.tar.gzandoshi-aarch64-linux.tar.gzcontain theoshibinary. They need glibc 2.34 or newer.- The module tarballs are named
<id>-<version>-<target>.tar.gz. The browser and webchat extension tarballs are rebuilds of unchanged versions. - Each tarball has a
.sha256file, andSHA256SUMScovers all of them.store.jsonholds the store index entries for the modules in this release.
The Docker image is ghcr.io/oshiengine/oshi-engine:0.10.0 (also 0.10, beta, stable and latest) for amd64 and arm64.
Getting started
tar -xzf oshi-x86_64-linux.tar.gz
./oshi init
./oshi serve
With the engine running, ./oshi module install settings and ./oshi module install webchat add the settings and the chat. Open http://127.0.0.1:7420/settings and create the owner login with the setup code from oshi init. Before talking to her, set llm.providers.local.base_url and llm.chat.model in oshi.toml (or the env file) to an OpenAI-compatible server.
With Docker, docker-compose.yml starts the engine with the web chat and its extensions, novel mode and the settings; the setup code is in the log (docker compose logs oshi-engine). docker-compose-full.yml adds every module, SearXNG and the headless Chrome, with SEARXNG_SECRET set in .env.
All changes: v0.9.0...v0.10.0