GeezerVison is showing github.com — feat(ai): add Runcrate memory provider preset by heydryft · Pull Request #457 · tickernelz/opencode-mem
Conversation
Summary
Add an optional Runcrate memory provider preset using the existing OpenAI Chat Completions transport, following the merged presets in #420 and #432. Runcrate serves open models (DeepSeek, GLM, Qwen, Kimi, gpt-oss and others) over an OpenAI-compatible API.
memoryProvider: "runcrate": endpoint default https://api.runcrate.ai/v1, model default deepseek-ai/DeepSeek-V4.1-Flash, RUNCRATE_API_KEY fallback, explicit env:// key configuration, and a distinct runcrate session tag.
- Factory, configuration validation, readiness detection, example/template, and all README languages updated.
- Tests cover authentication, request serialization (
tool_choice: "required"), tool response extraction, overrides, environment-key resolution, and rejection of remote-provider changes from project configuration.
- No defaults change for existing users. Users opt in with their own key (created at https://www.runcrate.ai/dashboard/api-keys?utm_source=opencode-mem&utm_medium=directory&utm_campaign=gpu_pricing); the docs name the destination for conversation data (
https://api.runcrate.ai).
Disclosure: I work on Runcrate.
Test plan
- Exercised locally: real calls through
RuncrateProvider.executeToolCall (config built by buildMemoryProviderConfig({ memoryProvider: "runcrate", memoryApiKey }), forced tool_choice: "required") returned save_memories tool data with success: true on deepseek-ai/DeepSeek-V4.1-Flash (the default), zai-org/GLM-5.3-Flash and Qwen/Qwen3.8-Flash. Example result: {"memories":["Prefers bun over npm as the package manager","Prefers tabs over spaces for indentation"]}. AIProviderFactory.createProvider("runcrate", ...) returned a RuncrateProvider.
- No known limitations beyond those of other OpenAI-compatible presets.
Checklist
- Branch is based on
main (do not open PRs from commits already on main)
-
bun test passes: 975 pass, 4 skip, 0 fail across 133 files (after bun run build, which the plugin-loader contract tests need)
-
bun run typecheck passes (included in check)
-
bun run check passes (format + lint + typecheck)
- Docs / README updated when behavior or contribution process changes
This PR was prepared with AI assistance: an AI coding agent wrote the change and ran the checks above.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
EyJunge1
commented
Oct 29, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
@EyJunge1 Looked into it. The four failures are not from this change. They all fail in npm install of the packed tarball with ETARGET No matching version found for @redis/[email protected].
That package comes in transitively (@opencode/plugin > @opencode/util > @effect/platform-node > [email protected]). [email protected] was published to npm at 09:18:49Z, but its @redis/[email protected] dependency only at 09:23:16Z. The Linux and macOS jobs ran npm install between 09:22:09Z and 09:22:58Z, inside that gap. The Windows job is slower and installed after 09:23:16Z, which is why it passed. This PR does not touch package.json or bun.lock.
I re-ran the whole package smoke step locally on macOS (arm64, Node 24) against this branch: bun run build, npm pack, npm install --ignore-scripts of the tarball, then native-deps-smoke.mjs, verify-libsql-vector.mjs and smoke-test.mjs. All pass now that @redis/[email protected] is on the registry.
I pushed an empty commit (55ac05f) to trigger a fresh run, since I can't re-run jobs here. The new Quality and Platform Package Smoke runs are waiting for workflow approval. Re-running the failed jobs of run 40820080040 would work too.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
|
Thanks @EyJunge1 for merging, and for digging into those CI failures with me. Glad Runcrate is a memory provider option in opencode-mem.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|