Skip to content

Epic: Serve OSA from the Claude Platform on AWS and retire the OpenRouter platform route #360

Closed
4 of 4 issues completed

Description

@neuromechanist

Goal

Retire OpenRouter as the platform-funded route and serve every community from the Claude Platform on AWS with a dedicated OSA key, the same endpoint HEDit moved to. Bring-your-own-key stays additive: an OpenRouter key still buys access to any OpenRouter model, and an Anthropic key is now accepted too. A Bedrock provider for many models is expected later; the provider layer is built so it can be added without another migration.

Model policy

Offered models narrow to two, both free to widget users on the platform key:

  • claude-haiku-4-5 (default) with extended thinking at a 2048-token budget. HEDit measured Haiku with a thinking budget as matching Sonnet on its tasks at a fraction of the cost; Haiku 4.5 has no adaptive mode, so the budget is explicit.
  • claude-sonnet-5 with adaptive thinking, for users who want the larger model.

Legacy OpenRouter-style identifiers (for example anthropic/claude-haiku-4.5) are normalized to first-party ids so saved widget settings and CLI configs keep working.

Phases

  1. Anthropic LLM service: offered-model registry, aliases, thinking policy, Claude Platform on AWS server mode, BYOK Anthropic, prompt caching that survives tool binding, pricing and settings.
  2. Key and model policy: platform and community keys become Anthropic-only and limited to the two offered models; BYOK OpenRouter keeps arbitrary models; community config defaults migrated; CLI headers.
  3. Widget and deployment config: model menu reduced to Sonnet 5 and Haiku 4.5, settings field accepts either key type, worker pass-through, compose and environment documentation, server environment sync.
  4. Inline citations (Include source link in response #350): retrieval tools return Anthropic search result blocks with citations enabled, citations reach the API response and the widget, with a prompt-rule fallback for BYOK OpenRouter models.
  5. Documentation site: update the OpenRouter references across the OSA pages in the documentation repository, including the architecture diagrams and the platform slide deck. Tracked separately in that repository.

Out of scope

Amazon Bedrock support. The provider seam is left open for it, but no Bedrock client lands in this epic.

Sub-issues

Sub-issues

4 of 4 Issues completed
Loading 4 sub-issues

Activity

  1. added
    P1
    feature
    on Sep 16, 2026
  2. neuromechanist commented on Sep 17, 2026

    @neuromechanist
    MemberAuthor

    Merged into develop as PR #395 (f72fc28), a regular merge so the phase commits survive.

    Five phases:

    BYOK stays additive: an OpenRouter or OpenAI key from a caller still works, and #393/PR #394 closed a header bypass found while checking that.

    Follow-ups filed rather than folded in: #382 (preloaded documents cannot be cited), #389 (bare [n] marker syntax can collide with the model's own prose), #396 (internal ValueErrors reported as 400), #397 (unmarked live-network tests).

    Remaining, and deliberately not part of the merge: ~/osa/.env on the server still needs DEFAULT_MODEL/TEST_MODEL pointed at claude-haiku-4-5 with the dead pre-migration variables pruned, and prod keeps running the pre-migration build until a develop -> main release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions