{"id":10444,"date":"2026-05-11T11:19:39","date_gmt":"2026-05-11T11:19:39","guid":{"rendered":"https:\/\/www.hostinger.com\/support\/?p=10444"},"modified":"2026-05-12T09:57:44","modified_gmt":"2026-05-12T09:57:44","slug":"how-to-integrate-openrouter-with-1click-openclaw","status":"publish","type":"post","link":"https:\/\/www.hostinger.com\/support\/how-to-integrate-openrouter-with-1click-openclaw\/","title":{"rendered":"How to integrate OpenRouter with 1-Click OpenClaw"},"content":{"rendered":"<p>The 1-Click OpenClaw solution at Hostinger provides a streamlined environment for deploying AI agents. By integrating it with OpenRouter, you can access a unified API for hundreds of LLMs. This setup is managed directly through the OpenClaw CLI, allowing you to authenticate and configure your models without manual file editing.<\/p><h2 id=\"h-pre-requisites\">Pre-requisites<\/h2><ul>\n<li>A Hostinger VPS running the 1-Click OpenClaw application.<\/li>\n<li>An OpenRouter API Key (obtainable from openrouter.ai).<\/li>\n<li>Access to your server via the CLI.<\/li>\n<\/ul><h2 id=\"h-step-1-access-the-openclaw-cli\">Step 1: Access the OpenClaw CLI<\/h2><p>To manage your 1-Click instance, you need to use the dedicated command-line interface:<\/p><ol>\n<li>Log in to your hPanel and navigate to the VPS section.<\/li>\n<li>Access your <b>OpenClaw instance.<\/b><\/li>\n<li>Click on <b>Dashboard.<\/b><\/li>\n<li>Click on <b>Command line (CLI) <\/b>button.<\/li>\n<\/ol><h2 id=\"h-step-2-authenticate-openrouter\">Step 2: Authenticate OpenRouter<\/h2><p>Instead of manually editing JSON files, use the built-in authentication command to connect your OpenRouter account:<\/p><ol>\n<li>In the CLI , run the following command:\n<pre>openclaw models auth login --provider openai-codex<\/pre>\n<\/li>\n<li>When prompted, enter your OpenRouter API Key.<\/li>\n<\/ol><p>&nbsp;<\/p><div class=\"intercom-interblocks-callout\" style=\"background-color: #e3e7fa80;border-color: #334bfa33\"><strong>Note<\/strong>: Ensure your key starts with sk-or- to be recognized correctly.<\/div><h2 id=\"h-step-3-set-openrouter-as-the-default-provider\">Step 3: Set OpenRouter as the Default Provider<\/h2><p>After authenticating, you need to tell OpenClaw to use OpenRouter for its agent requests:<\/p><ol>\n<li>Run the onboarding wizard:\n<pre>openclaw onboard<\/pre>\n<\/li>\n<li>Select OpenRouter from the list of available providers.<\/li>\n<li>Choose your preferred model (e.g., anthropic\/claude-3.5-sonnet or google\/gemini-pro-1.5).<\/li>\n<li>The CLI will automatically update your configuration and environment variables.<\/li>\n<\/ol><h2 id=\"h-step-4-verify-the-integration\">Step 4: Verify the Integration<\/h2><p>To confirm that OpenClaw is successfully communicating with OpenRouter, run:<\/p><pre>openclaw models list --provider openrouter<\/pre><p>If the integration is successful, you will see a list of available models pulled directly from your OpenRouter account.<\/p><p>By utilizing the 1-Click OpenClaw CLI, you can integrate OpenRouter in seconds. This allows your AI agents to leverage the latest models with minimal configuration overhead, all within your optimized Hostinger VPS environment.<\/p><p>&nbsp;<\/p><div class=\"intercom-interblocks-callout\" style=\"background-color: #e3e7fa80;border-color: #334bfa33\">\n<p><strong>Notes<\/strong>:<\/p>\n<ul>\n<li><strong>Command Access<\/strong>: If the openclaw command is not recognized, ensure you are logged in as the root user.<\/li>\n<li><strong>Model IDs<\/strong>: When selecting models, use the full identifier provided by OpenRouter (e.g., openrouter\/auto for automatic routing).<\/li>\n<li><strong>Reputation<\/strong>: If your connection to OpenRouter is timed out, verify that your VPS IP address is not being blocked by a firewall or flagged for a low reputation.<\/li>\n<\/ul>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Learn how to configure OpenRouter as your AI provider within the Hostinger 1-Click OpenClaw environment using simple CLI commands.<\/p>\n","protected":false},"author":594,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"include_on_kodee":true,"footnotes":""},"categories":[303],"tags":[],"class_list":["post-10444","post","type-post","status-publish","format-standard","hentry","category-openclaw"],"hreflangs":[],"include_on_kodee":true,"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/10444","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/users\/594"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/comments?post=10444"}],"version-history":[{"count":5,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/10444\/revisions"}],"predecessor-version":[{"id":10496,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/10444\/revisions\/10496"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/media?parent=10444"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/categories?post=10444"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/tags?post=10444"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}