{"id":492,"date":"2026-11-23T10:02:02","date_gmt":"2026-11-23T02:02:02","guid":{"rendered":"https:\/\/qoraapi.com\/blog\/kilo-code-custom-api-provider\/"},"modified":"2026-11-23T10:02:02","modified_gmt":"2026-11-23T02:02:02","slug":"kilo-code-custom-api-provider","status":"publish","type":"post","link":"https:\/\/qoraapi.com\/blog\/kilo-code-custom-api-provider\/","title":{"rendered":"Kilo Code Custom API Provider: Add Qora API Step by Step (2026)"},"content":{"rendered":"<p><strong>Short answer:<\/strong> To use Qora API in Kilo Code, open Settings \u2192 Providers \u2192 Custom provider, choose <strong>OpenAI Compatible<\/strong>, set the Base URL to <code>https:\/\/qoraapi.com\/v1<\/code>, paste your Qora API key and add a model ID such as <code>deepseek\/deepseek-v4.1-flash<\/code>. As of November 2026, that model costs $0.15 input \/ $0.45 output per 1M tokens on Qora API. Qora is for users outside mainland China.<\/p>\n<h2>How do I add a custom API provider in Kilo Code?<\/h2>\n<p>Kilo Code&#8217;s <a href=\"https:\/\/kilo.ai\/docs\/ai-providers\/openai-compatible\" rel=\"noopener\" target=\"_blank\">official OpenAI-compatible provider guide<\/a> says to open <strong>Settings<\/strong> (gear icon), go to the <strong>Providers<\/strong> tab, scroll to the bottom and click <strong>Custom provider<\/strong>. Fill in the dialog like this:<\/p>\n<table>\n<thead>\n<tr>\n<th>Field<\/th>\n<th>Value for Qora API<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Provider ID<\/td>\n<td><code>qora<\/code> (lowercase letters, numbers, hyphens, underscores)<\/td>\n<\/tr>\n<tr>\n<td>Display name<\/td>\n<td>Qora API<\/td>\n<\/tr>\n<tr>\n<td>Provider API<\/td>\n<td>OpenAI Compatible<\/td>\n<\/tr>\n<tr>\n<td>Base URL<\/td>\n<td><code>https:\/\/qoraapi.com\/v1<\/code><\/td>\n<\/tr>\n<tr>\n<td>API key<\/td>\n<td>Your key from <a href=\"https:\/\/qoraapi.com\/register\">qoraapi.com\/register<\/a><\/td>\n<\/tr>\n<tr>\n<td>Models<\/td>\n<td>Click <strong>Fetch models<\/strong>, or add IDs by hand, e.g. <code>deepseek\/deepseek-v4.1-flash<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Click <strong>Submit<\/strong>. The models then appear in the model picker under <code>qora\/&lt;model id&gt;<\/code>. Kilo can auto-fetch the list from <code>\/v1\/models<\/code> when the URL and key are valid; if that fails, type the IDs manually.<\/p>\n<h2>How do I configure Qora API in kilo.jsonc?<\/h2>\n<p>For token limits, tool calling and reasoning settings, Kilo&#8217;s <a href=\"https:\/\/kilo.ai\/docs\/code-with-ai\/agents\/custom-models\" rel=\"noopener\" target=\"_blank\">Custom Models guide<\/a> says to edit the <code>kilo.jsonc<\/code> config file. This example uses the documented <code>openai-compatible<\/code> provider shape with Qora&#8217;s endpoint:<\/p>\n<pre><code>{\n  \"$schema\": \"https:\/\/app.kilo.ai\/config.json\",\n  \"model\": \"openai-compatible\/deepseek-v4.1-flash\",\n  \"provider\": {\n    \"openai-compatible\": {\n      \"options\": {\n        \"apiKey\": \"{env:QORA_API_KEY}\",\n        \"baseURL\": \"https:\/\/qoraapi.com\/v1\"\n      },\n      \"models\": {\n        \"deepseek-v4.1-flash\": {\n          \"id\": \"deepseek\/deepseek-v4.1-flash\",\n          \"name\": \"DeepSeek V4.1 Flash (Qora)\",\n          \"tool_call\": true,\n          \"limit\": { \"context\": 128000, \"output\": 16384 }\n        },\n        \"glm-5.2\": {\n          \"name\": \"GLM 5.2 (Qora)\",\n          \"tool_call\": true,\n          \"limit\": { \"context\": 128000, \"output\": 16384 }\n        }\n      }\n    }\n  }\n}<\/code><\/pre>\n<p>Three details matter. The <code>id<\/code> field is the exact model ID sent to Qora, while the key is just the local name. Set <code>limit.context<\/code> and <code>limit.output<\/code> to the model&#8217;s real limits: Kilo&#8217;s docs warn that with both at 0, compaction is disabled and conversations grow until the provider rejects them. And per the same docs, <code>{env:VAR}<\/code> only resolves in trusted config such as your global config in <code>~\/.config\/kilo<\/code>, not in a project-level <code>kilo.json<\/code> committed to a repo, so keep the key in global config. The 128000 context above is a placeholder; check each model&#8217;s page for its real window.<\/p>\n<pre><code># macOS \/ Linux\nexport QORA_API_KEY=\"sk-your-qora-key\"<\/code><\/pre>\n<h2>Which models should I use in Kilo Code through Qora API?<\/h2>\n<p>Kilo&#8217;s agent depends on tool calling, so pick models that handle tools well. These are Qora&#8217;s default-group prices as of November 2026, computed from the live <a href=\"https:\/\/qoraapi.com\/pricing\">pricing page<\/a>:<\/p>\n<table>\n<thead>\n<tr>\n<th>Model<\/th>\n<th>Model ID<\/th>\n<th>Qora input \/ output per 1M<\/th>\n<th>Official price<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><a href=\"https:\/\/qoraapi.com\/models\/deepseek-v4-1-flash-api\">DeepSeek V4.1 Flash<\/a><\/td>\n<td><code>deepseek\/deepseek-v4.1-flash<\/code><\/td>\n<td>$0.15 \/ $0.45<\/td>\n<td>$0.30 \/ $1.20<\/td>\n<\/tr>\n<tr>\n<td><a href=\"https:\/\/qoraapi.com\/models\/glm-5-2-api\">GLM 5.2<\/a><\/td>\n<td><code>glm-5.2<\/code><\/td>\n<td>$0.42 \/ $1.32<\/td>\n<td>$1.40 \/ $4.40<\/td>\n<\/tr>\n<tr>\n<td><a href=\"https:\/\/qoraapi.com\/models\/deepseek-v4-pro-api\">DeepSeek V4 Pro<\/a><\/td>\n<td><code>deepseek\/deepseek-v4-pro<\/code><\/td>\n<td>$0.51 \/ $1.05<\/td>\n<td>see <a href=\"https:\/\/api-docs.deepseek.com\/quick_start\/pricing\" rel=\"noopener\" target=\"_blank\">DeepSeek pricing<\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Claude, GPT and Grok models are also available; see <a href=\"https:\/\/qoraapi.com\/pricing\">\/pricing<\/a> for their current Qora prices. Savings vary by model, up to 70% off official prices, and DeepSeek&#8217;s own off-peak and cache-hit rates can undercut Qora for some workloads. Prices change, so treat \/pricing as the source of truth.<\/p>\n<h2>Should I choose OpenAI Compatible, OpenAI Responses or Anthropic Messages?<\/h2>\n<p>Choose <strong>OpenAI Compatible<\/strong> for most models on Qora. Kilo&#8217;s dialog also offers OpenAI Responses (documented for OpenAI and xAI models) and Anthropic Messages (documented for Anthropic and MiniMax models). Qora&#8217;s pricing data lists <code>\/v1\/chat\/completions<\/code>, <code>\/v1\/responses<\/code> and, for Claude models, <code>\/v1\/messages<\/code>. For Claude on Qora, setting Provider API to Anthropic Messages is the natural match, but start with OpenAI Compatible if a request fails and compare.<\/p>\n<h2>How do I test the Qora endpoint before configuring Kilo?<\/h2>\n<p>Run one curl call. If it returns a reply, the same URL, key and model ID will work in Kilo.<\/p>\n<pre><code>curl https:\/\/qoraapi.com\/v1\/chat\/completions \\\n  -H \"Authorization: Bearer $QORA_API_KEY\" \\\n  -H \"Content-Type: application\/json\" \\\n  -d '{\"model\":\"deepseek\/deepseek-v4.1-flash\",\"messages\":[{\"role\":\"user\",\"content\":\"Say hi\"}]}'<\/code><\/pre>\n<p>List the models your key can use with <code>curl https:\/\/qoraapi.com\/v1\/models -H \"Authorization: Bearer $QORA_API_KEY\"<\/code>.<\/p>\n<h2>What about Roo Code?<\/h2>\n<p>Roo Code was shut down and archived on 15 May 2026 (see its <a href=\"https:\/\/docs.roocode.com\/sunset\" rel=\"noopener\" target=\"_blank\">sunset notice<\/a>), so Kilo Code is the maintained fork-style alternative. If you still run an older Roo build, the same Base URL and key work in any OpenAI-compatible field. For other editors, see our guides for <a href=\"https:\/\/qoraapi.com\/blog\/opencode-custom-provider\/\">OpenCode<\/a>, <a href=\"https:\/\/qoraapi.com\/blog\/zed-openai-compatible-provider\/\">Zed<\/a> and <a href=\"https:\/\/qoraapi.com\/blog\/cline-cheap-claude-api\/\">Cline<\/a>.<\/p>\n<h2>Kilo Code + Qora API FAQ<\/h2>\n<h3>What is the Qora API base URL for Kilo Code?<\/h3>\n<p>The base URL is <code>https:\/\/qoraapi.com\/v1<\/code>. Kilo also accepts a full endpoint URL such as <code>https:\/\/qoraapi.com\/v1\/chat\/completions<\/code>, but the plain <code>\/v1<\/code> base is the safest choice.<\/p>\n<h3>Why does Kilo Code say &#8220;Model Not Found&#8221;?<\/h3>\n<p>The model ID does not match what Qora lists. Kilo&#8217;s troubleshooting notes point to the model ID first. Copy the ID exactly from <a href=\"https:\/\/qoraapi.com\/pricing\">\/pricing<\/a>, including any prefix such as <code>deepseek\/<\/code>, and use the <code>id<\/code> field in <code>kilo.jsonc<\/code> if your local key differs.<\/p>\n<h3>Why does Kilo Code say &#8220;Invalid API Key&#8221;?<\/h3>\n<p>The key was mistyped, or an <code>{env:...}<\/code> reference was not resolved. Kilo only resolves environment references in trusted global config, not project-level config, so paste the key in the Providers dialog or move the config to <code>~\/.config\/kilo<\/code>.<\/p>\n<h3>Why does my custom model not show in the picker?<\/h3>\n<p>Credentials are usually missing or the model key does not match your <code>model<\/code> setting. Run <code>kilo models<\/code> in the CLI to list what Kilo sees, and use the <code>provider_id\/model_id<\/code> format.<\/p>\n<h3>How much does Qora API cost compared with official APIs?<\/h3>\n<p>Up to 70% less on some models: DeepSeek V4.1 Flash is $0.15 \/ $0.45 per 1M tokens on Qora versus $0.30 \/ $1.20 officially. The minimum top-up is $50, and new users can ask for a $5 trial by contacting X <strong>@QoraAPI<\/strong> or support@qoraapi.com.<\/p>\n<p>Ready to try it? <a href=\"https:\/\/qoraapi.com\/register\">Create a Qora API account<\/a> and paste the key into Kilo Code. Qora serves users outside mainland China only.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Short answer: To use Qora API in Kilo Code, open Settings \u2192 Providers \u2192 Custom provider, choose OpenAI Compatible, set the Base URL to https:\/\/qoraapi.com\/v1, paste your Qora API key and add a model ID such as deepseek\/deepseek-v4.1-flash. As of November 2026, that model costs $0.15 input \/ $0.45 output per 1M tokens on Qora [&hellip;]<\/p>\n","protected":false},"author":0,"featured_media":0,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-492","post","type-post","status-publish","format-standard","hentry","category-ai-api"],"_links":{"self":[{"href":"https:\/\/qoraapi.com\/blog\/wp-json\/wp\/v2\/posts\/492","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/qoraapi.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/qoraapi.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/qoraapi.com\/blog\/wp-json\/wp\/v2\/comments?post=492"}],"version-history":[{"count":0,"href":"https:\/\/qoraapi.com\/blog\/wp-json\/wp\/v2\/posts\/492\/revisions"}],"wp:attachment":[{"href":"https:\/\/qoraapi.com\/blog\/wp-json\/wp\/v2\/media?parent=492"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/qoraapi.com\/blog\/wp-json\/wp\/v2\/categories?post=492"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/qoraapi.com\/blog\/wp-json\/wp\/v2\/tags?post=492"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}