add-provider

Add a new LLM provider to OhMyCode with protocol implementation and registration.

131|4|Updated Apr 1, 2026
One-click install
npx skills add https://github.com/AlphaLab-USTC/OhMyCode --skill add-provider-alphalab-ustc
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: add-provider
Source: https://github.com/AlphaLab-USTC/OhMyCode/tree/main/.agents/skills/add-provider
Command: npx skills add https://github.com/AlphaLab-USTC/OhMyCode --skill add-provider-alphalab-ustc

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you extend OhMyCode with a new language model provider without guessing the internal architecture, message formats, or registration steps.

Core Features & Use Cases

  • Provider Integration: Add support for a new backend such as Gemini, Ollama, DeepSeek, or another custom API.
  • Protocol Guidance: Follow the required async streaming contract, event ordering, and tool-call handling so the provider works correctly.
  • Testing and Wiring: Create the provider module, register it, add config support if needed, and verify it with targeted tests.
  • Use Case: A developer wants to connect a local model server and needs a reliable blueprint for implementing the provider, registering it, and validating end-to-end behavior.

Quick Start

Ask for a step-by-step plan to add a new provider named your target model backend to OhMyCode, including the provider file, registration, config updates, and tests.

Frequently Asked Questions about add-provider

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add a new LLM provider to my Python backend for async streaming and tool calling?

To add a new LLM provider, implement the required provider protocol, ensuring you handle async stream output, tool-call event ordering, configuration wiring, and targeted tests for runtime discovery and execution.

What is the required protocol for handling streaming events when integrating a custom AI model?

The required protocol mandates async streaming contracts and specific event ordering for tool-call handling. Properly managing these streaming events ensures the custom AI model integrates correctly and executes reliably within the system.

Can I integrate local models like Ollama or DeepSeek into OhMyCode?

Yes, you can integrate local models like Ollama or DeepSeek. The integration applies to backend APIs for non-OpenAI-compatible services, requiring you to create the provider module, register it, and validate end-to-end behavior with tests.

How do I register a newly added provider module and update its configuration?

To register a newly added provider, follow the registration workflow by creating the provider file, adding config support if needed, and wiring it into the system. Validate the setup with provider-specific tests to ensure runtime discovery.

Does adding a non-OpenAI-compatible API require specific testing for tool-call events?

Yes, adding a non-OpenAI-compatible API requires specific testing. You must verify async stream output and tool-call event support with targeted tests to satisfy runtime discovery and ensure correct end-to-end execution behavior.