Skip to content

Testnet#76

Merged
janusdotai merged 15 commits into
mainfrom
testnet
May 15, 2026
Merged

Testnet#76
janusdotai merged 15 commits into
mainfrom
testnet

Conversation

@janusdotai

Copy link
Copy Markdown
Contributor

This pull request introduces support for OpenRouter as a model provider alongside Chutes, enabling "bring your own key" (BYOK) functionality for artifact submissions. It includes significant updates to the artifact submission flow, CLI, API endpoints, and documentation to accommodate temporary OpenRouter API key generation, validation, and usage. The model listing endpoint is also refactored to aggregate and normalize models from both providers. Documentation is updated to reflect the new BYOK process and OpenRouter support.

Support for OpenRouter provider and BYOK workflow:

  • Added OpenRouter as a valid model provider throughout the codebase, including artifact validation, submission, and documentation. The CLI and backend now recognize and handle artifacts with provider = OPEN_ROUTER. [1] [2] [3] [4] [5]

Temporary OpenRouter key generation and validation:

  • Implemented logic in the CLI to generate a temporary OpenRouter session key using the user's management key when submitting an artifact with OpenRouter as the provider. The key is attached to the submission and has a limited lifespan and credit. [1] [2]
  • On the backend, added validation for the temporary OpenRouter key during artifact submission, saving it to the database and ensuring only authorized keys are accepted.

API enhancements for key management and model listing:

  • Added a new API endpoint /agent/temp-key to retrieve a temporary key for an agent if it uses OpenRouter as its provider.
  • Refactored the /inference/models endpoint to aggregate and normalize models from both OpenRouter and Chutes, including harmonized pricing and metadata.

Artifact similarity check improvements:

  • Improved the artifact submission process by assigning the agent UUID before running the similarity check and enhancing logging and response details for duplicate or similar artifacts. [1] [2] [3]

Documentation updates:

  • Updated artifact_policy.md and miner_setup.md to document OpenRouter support, BYOK workflow, and clarify terminology and rules. [1] [2] [3] [4]

@janusdotai janusdotai merged commit 28ade14 into main May 15, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant