paperclip/packages/adapters
Jannes Stubbemann 87e8245ce9 feat(opencode-local): env-driven gateway routing (custom providers, small/cheap model, honour allow-all on remote)
Make opencode-local usable behind an LLM gateway via declarative env, without
hard-coding provider/model assumptions:

- PAPERCLIP_OPENCODE_PROVIDERS: merge custom/extended providers (OpenCode `provider`
  shape) into the runtime opencode.json. OpenCode resolves `--model provider/model`
  only if the model is in a provider's `models` map, and OPENCODE_ALLOW_ALL_MODELS
  does NOT bypass getModel() -- so gateway models must be registered. {env:VAR}
  placeholders are expanded server-side so secrets need not depend on the run env.
- PAPERCLIP_OPENCODE_SMALL_MODEL / PAPERCLIP_OPENCODE_CHEAP_MODEL: pin the auxiliary
  (title-gen) and budget (recovery) lanes to gateway-served models, else they fall
  back to built-in defaults the gateway may not serve ('no keys found that support
  model'). Defaults unchanged.
- Honour OPENCODE_ALLOW_ALL_MODELS on the REMOTE execution path too (was local-only).
- Optional PAPERCLIP_OPENCODE_PRINT_LOGS toggle to surface OpenCode logs on stderr
  for diagnosing remote/sandbox runs.

All env-driven and opt-in; defaults preserve current behaviour. +tests.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-09 22:00:54 +02:00
..
acpx-local [codex] Add skills CLI and catalog management (#6782) 2026-05-28 07:33:51 -10:00
claude-local Add Claude Fable 5 and Mythos 5 to the model selector (#7826) 2026-06-09 13:32:32 -05:00
codex-local [codex] Add skills CLI and catalog management (#6782) 2026-05-28 07:33:51 -10:00
cursor-cloud build(deps): bump @cursor/sdk from 1.0.12 to 1.0.18 (#7573) 2026-06-04 22:24:51 -07:00
cursor-local Harden Cloudflare sandbox execution (#5967) 2026-05-13 22:00:10 -07:00
gemini-local Fix exe.dev sandbox installs for gemini/opencode local adapters (#5737) 2026-05-11 14:28:22 -07:00
grok-local [codex] Add skills CLI and catalog management (#6782) 2026-05-28 07:33:51 -10:00
openclaw-gateway PAPA-430: workspace finalize gates + no-remote-git enforcement (#6969) 2026-05-29 08:25:29 -07:00
opencode-local feat(opencode-local): env-driven gateway routing (custom providers, small/cheap model, honour allow-all on remote) 2026-06-09 22:00:54 +02:00
pi-local Harden Cloudflare sandbox execution (#5967) 2026-05-13 22:00:10 -07:00
AUTHORING.md PAPA-430: workspace finalize gates + no-remote-git enforcement (#6969) 2026-05-29 08:25:29 -07:00