Skip to content

feat(k8s): serve deepseek-v4.1-flash-1017 through OpenRouter #3144

Description

@dan-petty

Problem or Motivation

The owner has an OpenRouter API key and wants the model deepseek/deepseek-v4.1-flash-1017 as a gateway model, to evaluate it for the stages of the roadmap jobs and as a cheaper hosted model. The gateway has no OpenRouter key and no group for it.

Proposed Solution & Architectural Design

Follow the pattern of the hosted groups of #3113:

  1. Group deepseek-v4.1-flash-1017 in k8s/llm/gateway/config.yaml: openrouter/deepseek/deepseek-v4.1-flash-1017, api_key: os.environ/OPENROUTER_API_KEY, window 1048576, prices 0.30 USD input and 1.20 USD output per million tokens (OpenRouter list, 2026-11-02; the cost map of the pinned LiteLLM image is checked first). No pool and no fallback names it.
  2. Key: the credential openrouter.api_key (keyring) goes to the optional key openrouter-api-key of llm/llm-gateway-secrets through devops k8s push-secrets; the Deployment reads it as OPENROUTER_API_KEY. The gateway starts without it.
  3. Egress: the existing rule (TCP 443 to public addresses) covers openrouter.ai. No change.
  4. Data: OpenRouter routes a prompt to a third-party provider. The group asks OpenRouter to route only to providers that do not store or train on prompts (data_collection: deny), and the README and SECURITY.md say that the prompt leaves the cluster.
  5. Tests: the hosted-group check covers the new group (key, optional Secret entry, no pool, prices).

Target Subsystem

k8s/llm/gateway, src/devops_cli/k8s/cluster_secrets.py, src/devops_cli/config/env.py, k8s/README.md, SECURITY.md.

Existing Tool Considered

LiteLLM supports the openrouter/ provider and os.environ/ key references. No new tool. Cost to build: about 25k tokens and 1 hour (the pattern of #3113). Running cost: OpenRouter bills each token.

Activity

  1. added
    source/agent
    type/feature
    scope/k8s
    status/new
    value/medium
    effort/low
    on Nov 2, 2026
  2. dan-petty commented on Nov 2, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.

    • Type: type/feature. The feat prefix of the title gives the type.
    • Scope: scope/k8s. The (k8s) scope of the title gives the scope.
    • Priority: P3-Low. This is an optional model addition for evaluation, not a defect or a blocking gap.
    • Value: Medium. It gives the owner one more hosted model to compare on roadmap jobs, but the gateway already serves other hosted models.
    • Effort: Low. The body states the work is about 1 hour following the closed pattern of #3113, with no new tool needed.
    • Related: feat(k8s): the LiteLLM gateway routes gemini-3.8-flash with its own API key and public egress on port 443 #3113, which asks for a different change. Both add a hosted model group to the LiteLLM gateway config, but #3113 adds gemini-3.8-flash via the gemini provider while the candidate adds deepseek-v4.1-flash-1017 via the OpenRouter provider.
  3. added
    priority/p3-low
    status/in-progress
    and removed
    status/new
    on Nov 2, 2026
  4. removed
    status/in-progress
    on Nov 2, 2026
  5. added a commit that references this issue on Nov 2, 2026
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

    effort/lowpriority/p3-lowscope/k8ssource/agenttype/featurevalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions