{"id":74415,"date":"2026-05-21T21:00:00","date_gmt":"2026-05-21T13:00:00","guid":{"rendered":"https:\/\/www.hongkiat.com\/blog\/?p=74415"},"modified":"2026-05-21T16:42:51","modified_gmt":"2026-05-21T08:42:51","slug":"hermes-agent-xai-grok-oauth","status":"publish","type":"post","link":"https:\/\/www.hongkiat.com\/blog\/hermes-agent-xai-grok-oauth\/","title":{"rendered":"How to Use SuperGrok With Hermes Agent Without an xAI API Key"},"content":{"rendered":"<p>Hermes Agent can use Grok through an existing SuperGrok subscription, or through an X Premium+ subscription linked to the X account you sign in with. That means you do not need to create an <code>XAI_API_KEY<\/code> just to try xAI models inside Hermes.<\/p>\n<p>You log in once through a browser-based OAuth flow, Hermes saves the tokens locally, and future sessions refresh automatically in the background.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/hermes-agent-xai-grok-oauth\/grok-hermes.jpg\" alt=\"Grok Hermes integration\" width=\"1280\" height=\"900\"><\/figure>\n<p>That is the simple version. The nicer part is that the same login also covers Hermes\u2019 direct xAI media tools, including text-to-speech, image generation, video generation, and transcription. The same xAI credentials can also enable X search if you want that tool available.<\/p>\n<p>If you already pay for SuperGrok or X Premium+, this is a cleaner way to connect Hermes to Grok without juggling API keys. If you are still figuring out where Hermes fits, this <a href=\"https:\/\/www.hongkiat.com\/blog\/openclaw-vs-hermes-agent\/\">OpenClaw vs Hermes Agent<\/a> comparison is a useful companion.<\/p>\n<h2 id=\"what-hermes-uses\">What Hermes Is Actually Using<\/h2>\n<p>The provider is called <strong>xAI Grok OAuth (SuperGrok \/ X Premium+)<\/strong> inside Hermes. Its provider ID is:<\/p>\n<pre><code>xai-oauth<\/code><\/pre>\n<p>Under the hood, Hermes connects to xAI\u2019s Responses-style API endpoint at:<\/p>\n<pre><code>https:\/\/api.x.ai\/v1<\/code><\/pre>\n<p>Hermes reuses its <code>codex_responses<\/code> transport for this provider, so features such as reasoning, tool calling, streaming, and prompt caching work without needing a separate Grok-specific adapter.<\/p>\n<p>The default model is currently:<\/p>\n<pre><code>grok-4.3<\/code><\/pre>\n<p>Hermes pins that model near the top of the picker after you log in.<\/p>\n<h2 id=\"what-you-need-first\">What You Need First<\/h2>\n<p>Before setting this up, you need:<\/p>\n<ul>\n<li>Python 3.9 or newer<\/li>\n<li>Hermes Agent installed<\/li>\n<li>An active SuperGrok subscription, or an X Premium+ subscription on the X account you use for login<\/li>\n<li>A browser on the same machine, or SSH port forwarding if you are setting it up on a remote server<\/li>\n<\/ul>\n<p>The important detail: this provider does not use <code>XAI_API_KEY<\/code>. If you want to use your Grok subscription instead of API billing, use the OAuth provider.<\/p>\n<p>There is one caveat worth knowing early. Hermes\u2019 docs note that xAI may restrict OAuth API access by tier. If the browser login works but inference returns HTTP 403, you may need to switch to the API-key provider instead.<\/p>\n<h2 id=\"sign-in-through-model-picker\">Sign In Through the Model Picker<\/h2>\n<p>The easiest setup path is through Hermes\u2019 model picker:<\/p>\n<pre><code>hermes model<\/code><\/pre>\n<p>Select <strong>xAI Grok OAuth (SuperGrok \/ X Premium+)<\/strong> from the provider list. Hermes opens <code>accounts.x.ai<\/code> in your browser, where you sign in and approve access. This is a normal <a href=\"https:\/\/www.hongkiat.com\/blog\/oauth-connect\/\">OAuth-style login flow<\/a>: you approve access in the browser instead of copying a long secret key into your terminal.<\/p>\n<p>After that, pick a Grok model. For most people, <code>grok-4.3<\/code> is the obvious starting point.<\/p>\n<p>Then start Hermes normally:<\/p>\n<pre><code>hermes<\/code><\/pre>\n<p>Hermes stores the login credentials in:<\/p>\n<pre><code>~\/.hermes\/auth.json<\/code><\/pre>\n<p>Once the tokens are saved, Hermes refreshes them automatically before they expire. You should not have to repeat the browser login for every session.<\/p>\n<h2 id=\"sign-in-manually\">Sign In Manually<\/h2>\n<p>If you already know you want the xAI OAuth provider, you can skip the model picker and start the auth flow directly:<\/p>\n<pre><code>hermes auth add xai-oauth<\/code><\/pre>\n<p>This launches the same browser login flow. After approval, Hermes saves the OAuth tokens and the provider is ready to use.<\/p>\n<h2 id=\"set-grok-default-model\">Set Grok as Your Default Model<\/h2>\n<p>You can switch providers through the interactive model picker:<\/p>\n<pre><code>hermes model<\/code><\/pre>\n<p>Or set the provider and model directly:<\/p>\n<pre><code>hermes config set model.default grok-4.3\nhermes config set model.provider xai-oauth<\/code><\/pre>\n<p>Your <code>~\/.hermes\/config.yaml<\/code> should then contain something like this:<\/p>\n<pre><code>model:\n  default: grok-4.3\n  provider: xai-oauth\n  base_url: https:\/\/api.x.ai\/v1<\/code><\/pre>\n<p>Hermes also accepts a few provider aliases if you prefer something more descriptive:<\/p>\n<pre><code>hermes --provider xai-oauth\nhermes --provider grok-oauth\nhermes --provider x-ai-oauth\nhermes --provider xai-grok-oauth<\/code><\/pre>\n<p>I would still use <code>xai-oauth<\/code> in scripts and documentation. It is shorter and canonical.<\/p>\n<h2 id=\"using-remote-server\">Using It on a Remote Server<\/h2>\n<p>OAuth is slightly more annoying when Hermes is running on a server, container, or SSH session.<\/p>\n<p>Hermes can print the authorization URL instead of opening a browser:<\/p>\n<pre><code>hermes auth add xai-oauth --no-browser<\/code><\/pre>\n<p>But the callback listener still runs on the remote machine at:<\/p>\n<pre><code>127.0.0.1:56121<\/code><\/pre>\n<p>If you open the printed URL on your laptop without forwarding that port, the browser cannot reach the callback listener. You will usually see a connection error.<\/p>\n<p>Open a second terminal on your local machine and forward the port first:<\/p>\n<pre><code>ssh -N -L 56121:127.0.0.1:56121 user@remote-host<\/code><\/pre>\n<p>Then, in the SSH session where Hermes is running:<\/p>\n<pre><code>hermes auth add xai-oauth --no-browser<\/code><\/pre>\n<p>Open the printed URL in your local browser. The login should now redirect back through the forwarded port to Hermes on the remote machine.<\/p>\n<p>If you connect through a jump host, add <code>-J jump-user@jump-host<\/code> to the SSH command.<\/p>\n<h3 id=\"browser-only-remotes\">Browser-Only Remote Consoles<\/h3>\n<p>If you are using a browser-based remote console, such as Cloud Shell, Codespaces, EC2 Instance Connect, Gitpod, or a similar environment, the SSH forwarding recipe may not be available.<\/p>\n<p>In that case, use manual paste mode:<\/p>\n<pre><code>hermes auth add xai-oauth --manual-paste<\/code><\/pre>\n<p>Or launch it from the model picker:<\/p>\n<pre><code>hermes model --manual-paste<\/code><\/pre>\n<p>Hermes skips the local callback listener and lets you paste the failed callback URL from the browser instead.<\/p>\n<h2 id=\"check-login-worked\">Check Whether the Login Worked<\/h2>\n<p>Run:<\/p>\n<pre><code>hermes doctor<\/code><\/pre>\n<p>Look for the <strong>Auth Providers<\/strong> section and check the status for <code>xai-oauth<\/code>.<\/p>\n<p>If Hermes has a valid OAuth entry, Grok should be available through the model picker and direct provider selection.<\/p>\n<h2 id=\"use-login-for-xai-tools\">Use the Same Login for xAI Tools<\/h2>\n<p>The OAuth token is not limited to chat models. Hermes can reuse the same xAI login for several direct-to-xAI tools:<\/p>\n<ul>\n<li>Text-to-speech<\/li>\n<li>Image generation<\/li>\n<li>Video generation<\/li>\n<li>Transcription<\/li>\n<li>X search<\/li>\n<\/ul>\n<p>Open the tools picker:<\/p>\n<pre><code>hermes tools<\/code><\/pre>\n<p>Then choose the xAI backend where needed:<\/p>\n<ul>\n<li><strong>Text-to-Speech<\/strong>: xAI TTS<\/li>\n<li><strong>Image Generation<\/strong>: xAI Grok Imagine (image)<\/li>\n<li><strong>Video Generation<\/strong>: xAI Grok Imagine<\/li>\n<li><strong>X Search<\/strong>: xAI Grok OAuth (SuperGrok \/ X Premium+)<\/li>\n<\/ul>\n<p>If your OAuth token is already stored, Hermes should detect it and skip the credential prompt.<\/p>\n<p>A small gotcha: video generation is disabled by default, so enable it in <code>hermes tools<\/code> before expecting the agent to call the video tool. X search behaves differently: Hermes\u2019 docs say it auto-enables when xAI credentials are present, but you can still disable it explicitly in the tools picker if you do not want it available.<\/p>\n<h2 id=\"available-grok-models\">Available Grok Models<\/h2>\n<p>The current xAI OAuth setup exposes Grok chat models such as:<\/p>\n<ul>\n<li><code>grok-4.3<\/code><\/li>\n<li><code>grok-4.20-0309-reasoning<\/code><\/li>\n<li><code>grok-4.20-0309-non-reasoning<\/code><\/li>\n<li><code>grok-4.20-multi-agent-0309<\/code><\/li>\n<\/ul>\n<p>For media tools, Hermes lists xAI options such as:<\/p>\n<ul>\n<li><code>grok-imagine-image<\/code><\/li>\n<li><code>grok-imagine-image-quality<\/code><\/li>\n<li><code>grok-imagine-video<\/code><\/li>\n<li>xAI TTS through the <code>\/v1\/tts<\/code> endpoint<\/li>\n<\/ul>\n<p>The chat model catalog is pulled from Hermes\u2019 local <code>models.dev<\/code> cache, so new xAI model releases can appear after that cache refreshes.<\/p>\n<h2 id=\"fix-common-oauth-problems\">Fix Common OAuth Problems<\/h2>\n<p>Most setup problems fall into a few predictable buckets.<\/p>\n<h5 id=\"token-expired-refresh-failed\">Token Expired or Refresh Failed<\/h5>\n<p>Hermes refreshes tokens before a session and can also retry after a <code>401<\/code> response. If the refresh token was revoked or rotated, Hermes will ask you to authenticate again.<\/p>\n<p>Run:<\/p>\n<pre><code>hermes auth add xai-oauth<\/code><\/pre>\n<h5 id=\"login-timed-out\">Login Timed Out<\/h5>\n<p>The local callback listener only stays open for a limited window. If you do not approve the login quickly enough, the flow times out.<\/p>\n<p>Run the login command again and approve the browser request within the window:<\/p>\n<pre><code>hermes auth add xai-oauth<\/code><\/pre>\n<h5 id=\"state-mismatch\">State Mismatch<\/h5>\n<p>A state mismatch usually means the OAuth response did not match the request Hermes created. Re-run the login. If it keeps happening, check whether a proxy, browser extension, or redirect layer is interfering with the callback.<\/p>\n<h5 id=\"remote-login-cannot-reach-app\">Remote Login Cannot Reach the App<\/h5>\n<p>This is the common SSH setup failure. The browser is on your laptop, but the callback listener is on the remote machine.<\/p>\n<p>Forward the callback port:<\/p>\n<pre><code>ssh -N -L 56121:127.0.0.1:56121 user@remote-host<\/code><\/pre>\n<p>Then rerun:<\/p>\n<pre><code>hermes auth add xai-oauth --no-browser<\/code><\/pre>\n<h5 id=\"http-403-after-login\">HTTP 403 After a Successful Login<\/h5>\n<p>If OAuth login succeeds but inference returns HTTP 403, the problem may be subscription entitlement rather than a stale token. Hermes\u2019 docs say xAI\u2019s backend has been seen to restrict OAuth API access for some tiers.<\/p>\n<p>If that happens, re-running <code>hermes model<\/code> is unlikely to fix it. Use the API-key provider instead:<\/p>\n<pre><code>export XAI_API_KEY=xai-...\nhermes config set model.provider xai<\/code><\/pre>\n<p>Or upgrade your Grok subscription if the OAuth route is required.<\/p>\n<h5 id=\"no-xai-credentials-found\">No xAI Credentials Found<\/h5>\n<p>Hermes has no saved <code>xai-oauth<\/code> entry and no <code>XAI_API_KEY<\/code> set.<\/p>\n<p>If you want to use SuperGrok or X Premium+ OAuth, run:<\/p>\n<pre><code>hermes model<\/code><\/pre>\n<p>Pick the xAI Grok OAuth provider, or run:<\/p>\n<pre><code>hermes auth add xai-oauth<\/code><\/pre>\n<h2 id=\"log-out-when-needed\">Log Out When Needed<\/h2>\n<p>To remove saved xAI OAuth credentials:<\/p>\n<pre><code>hermes auth logout xai-oauth<\/code><\/pre>\n<p>That clears the OAuth entry from Hermes\u2019 auth store.<\/p>\n<p>If you only want to remove one credential entry from a pool, list the entries first:<\/p>\n<pre><code>hermes auth list xai-oauth<\/code><\/pre>\n<p>Then remove the specific entry:<\/p>\n<pre><code>hermes auth remove xai-oauth &lt;index|id|label&gt;<\/code><\/pre>\n<h2 id=\"final-thought\">Final Thought<\/h2>\n<p>The appeal here is convenience. If you already have SuperGrok or X Premium+, Hermes can use that subscription through a normal browser login. No API key. No separate setup for every xAI tool. No awkward token copying.<\/p>\n<p>For local use, the setup is basically <code>hermes model<\/code>, pick xAI OAuth, approve in the browser, and start chatting. If you prefer a GUI around Hermes, <a href=\"https:\/\/www.hongkiat.com\/blog\/hermes-desktop-gui-for-hermes-agent\/\">Hermes Desktop<\/a> may be worth setting up too.<\/p>\n<p>For remote machines, remember the callback port: <code>56121<\/code>. That one small detail saves a lot of head-scratching.<\/p>","protected":false},"excerpt":{"rendered":"<p>Use your SuperGrok or X Premium+ subscription with Hermes Agent through xAI OAuth, without creating a separate xAI API key.<\/p>\n","protected":false},"author":9,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[3393],"tags":[],"topic":[],"class_list":["entry-content","is-maxi"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v22.8 (Yoast SEO v27.6) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Use SuperGrok With Hermes Agent Without an xAI API Key - Hongkiat<\/title>\n<meta name=\"description\" content=\"Use your SuperGrok or X Premium+ subscription with Hermes Agent through xAI OAuth, without creating a separate xAI API key.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.hongkiat.com\/blog\/hermes-agent-xai-grok-oauth\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Use SuperGrok With Hermes Agent Without an xAI API Key\" \/>\n<meta property=\"og:description\" content=\"Use your SuperGrok or X Premium+ subscription with Hermes Agent through xAI OAuth, without creating a separate xAI API key.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.hongkiat.com\/blog\/hermes-agent-xai-grok-oauth\/\" \/>\n<meta property=\"og:site_name\" content=\"Hongkiat\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/hongkiatcom\" \/>\n<meta property=\"article:published_time\" content=\"2026-05-21T13:00:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/assets.hongkiat.com\/uploads\/hermes-agent-xai-grok-oauth\/grok-hermes.jpg\" \/>\n<meta name=\"author\" content=\"Hongkiat.com\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@hongkiat\" \/>\n<meta name=\"twitter:site\" content=\"@hongkiat\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Hongkiat.com\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"8 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/hermes-agent-xai-grok-oauth\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/hermes-agent-xai-grok-oauth\\\/\"},\"author\":{\"name\":\"Hongkiat.com\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/person\\\/7cc686597d92f9086729e4bcc1577ba3\"},\"headline\":\"How to Use SuperGrok With Hermes Agent Without an xAI API Key\",\"datePublished\":\"2026-05-21T13:00:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/hermes-agent-xai-grok-oauth\\\/\"},\"wordCount\":1361,\"publisher\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/hermes-agent-xai-grok-oauth\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/hermes-agent-xai-grok-oauth\\\/grok-hermes.jpg\",\"articleSection\":[\"Toolkit\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/hermes-agent-xai-grok-oauth\\\/\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/hermes-agent-xai-grok-oauth\\\/\",\"name\":\"How to Use SuperGrok With Hermes Agent Without an xAI API Key - Hongkiat\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/hermes-agent-xai-grok-oauth\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/hermes-agent-xai-grok-oauth\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/hermes-agent-xai-grok-oauth\\\/grok-hermes.jpg\",\"datePublished\":\"2026-05-21T13:00:00+00:00\",\"description\":\"Use your SuperGrok or X Premium+ subscription with Hermes Agent through xAI OAuth, without creating a separate xAI API key.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/hermes-agent-xai-grok-oauth\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/hermes-agent-xai-grok-oauth\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/hermes-agent-xai-grok-oauth\\\/#primaryimage\",\"url\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/hermes-agent-xai-grok-oauth\\\/grok-hermes.jpg\",\"contentUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/hermes-agent-xai-grok-oauth\\\/grok-hermes.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/hermes-agent-xai-grok-oauth\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Use SuperGrok With Hermes Agent Without an xAI API Key\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\",\"name\":\"Hongkiat\",\"description\":\"Tech and Design Tips\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\",\"name\":\"Hongkiat.com\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wp-content\\\/uploads\\\/hkdc-logo-rect-yoast.jpg\",\"contentUrl\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wp-content\\\/uploads\\\/hkdc-logo-rect-yoast.jpg\",\"width\":1200,\"height\":799,\"caption\":\"Hongkiat.com\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/hongkiatcom\",\"https:\\\/\\\/x.com\\\/hongkiat\",\"https:\\\/\\\/www.pinterest.com\\\/hongkiat\\\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/person\\\/7cc686597d92f9086729e4bcc1577ba3\",\"name\":\"Hongkiat.com\",\"description\":\"This post is published by an HKDC (hongkiat.com) staff. (I.e., intern, staff writer, or editor).\",\"sameAs\":[\"https:\\\/\\\/www.hongkiat.com\"],\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/author\\\/com\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Use SuperGrok With Hermes Agent Without an xAI API Key - Hongkiat","description":"Use your SuperGrok or X Premium+ subscription with Hermes Agent through xAI OAuth, without creating a separate xAI API key.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.hongkiat.com\/blog\/hermes-agent-xai-grok-oauth\/","og_locale":"en_US","og_type":"article","og_title":"How to Use SuperGrok With Hermes Agent Without an xAI API Key","og_description":"Use your SuperGrok or X Premium+ subscription with Hermes Agent through xAI OAuth, without creating a separate xAI API key.","og_url":"https:\/\/www.hongkiat.com\/blog\/hermes-agent-xai-grok-oauth\/","og_site_name":"Hongkiat","article_publisher":"https:\/\/www.facebook.com\/hongkiatcom","article_published_time":"2026-05-21T13:00:00+00:00","og_image":[{"url":"https:\/\/assets.hongkiat.com\/uploads\/hermes-agent-xai-grok-oauth\/grok-hermes.jpg","type":"","width":"","height":""}],"author":"Hongkiat.com","twitter_card":"summary_large_image","twitter_creator":"@hongkiat","twitter_site":"@hongkiat","twitter_misc":{"Written by":"Hongkiat.com","Est. reading time":"8 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.hongkiat.com\/blog\/hermes-agent-xai-grok-oauth\/#article","isPartOf":{"@id":"https:\/\/www.hongkiat.com\/blog\/hermes-agent-xai-grok-oauth\/"},"author":{"name":"Hongkiat.com","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/person\/7cc686597d92f9086729e4bcc1577ba3"},"headline":"How to Use SuperGrok With Hermes Agent Without an xAI API Key","datePublished":"2026-05-21T13:00:00+00:00","mainEntityOfPage":{"@id":"https:\/\/www.hongkiat.com\/blog\/hermes-agent-xai-grok-oauth\/"},"wordCount":1361,"publisher":{"@id":"https:\/\/www.hongkiat.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/hermes-agent-xai-grok-oauth\/#primaryimage"},"thumbnailUrl":"https:\/\/assets.hongkiat.com\/uploads\/hermes-agent-xai-grok-oauth\/grok-hermes.jpg","articleSection":["Toolkit"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.hongkiat.com\/blog\/hermes-agent-xai-grok-oauth\/","url":"https:\/\/www.hongkiat.com\/blog\/hermes-agent-xai-grok-oauth\/","name":"How to Use SuperGrok With Hermes Agent Without an xAI API Key - Hongkiat","isPartOf":{"@id":"https:\/\/www.hongkiat.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.hongkiat.com\/blog\/hermes-agent-xai-grok-oauth\/#primaryimage"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/hermes-agent-xai-grok-oauth\/#primaryimage"},"thumbnailUrl":"https:\/\/assets.hongkiat.com\/uploads\/hermes-agent-xai-grok-oauth\/grok-hermes.jpg","datePublished":"2026-05-21T13:00:00+00:00","description":"Use your SuperGrok or X Premium+ subscription with Hermes Agent through xAI OAuth, without creating a separate xAI API key.","breadcrumb":{"@id":"https:\/\/www.hongkiat.com\/blog\/hermes-agent-xai-grok-oauth\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.hongkiat.com\/blog\/hermes-agent-xai-grok-oauth\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hongkiat.com\/blog\/hermes-agent-xai-grok-oauth\/#primaryimage","url":"https:\/\/assets.hongkiat.com\/uploads\/hermes-agent-xai-grok-oauth\/grok-hermes.jpg","contentUrl":"https:\/\/assets.hongkiat.com\/uploads\/hermes-agent-xai-grok-oauth\/grok-hermes.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/www.hongkiat.com\/blog\/hermes-agent-xai-grok-oauth\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.hongkiat.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Use SuperGrok With Hermes Agent Without an xAI API Key"}]},{"@type":"WebSite","@id":"https:\/\/www.hongkiat.com\/blog\/#website","url":"https:\/\/www.hongkiat.com\/blog\/","name":"Hongkiat","description":"Tech and Design Tips","publisher":{"@id":"https:\/\/www.hongkiat.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.hongkiat.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.hongkiat.com\/blog\/#organization","name":"Hongkiat.com","url":"https:\/\/www.hongkiat.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.hongkiat.com\/blog\/wp-content\/uploads\/hkdc-logo-rect-yoast.jpg","contentUrl":"https:\/\/www.hongkiat.com\/blog\/wp-content\/uploads\/hkdc-logo-rect-yoast.jpg","width":1200,"height":799,"caption":"Hongkiat.com"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/hongkiatcom","https:\/\/x.com\/hongkiat","https:\/\/www.pinterest.com\/hongkiat\/"]},{"@type":"Person","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/person\/7cc686597d92f9086729e4bcc1577ba3","name":"Hongkiat.com","description":"This post is published by an HKDC (hongkiat.com) staff. (I.e., intern, staff writer, or editor).","sameAs":["https:\/\/www.hongkiat.com"],"url":"https:\/\/www.hongkiat.com\/blog\/author\/com\/"}]}},"jetpack_featured_media_url":"https:\/\/","jetpack_shortlink":"https:\/\/wp.me\/p4uxU-jmf","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/74415","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/comments?post=74415"}],"version-history":[{"count":1,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/74415\/revisions"}],"predecessor-version":[{"id":74417,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/74415\/revisions\/74417"}],"wp:attachment":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/media?parent=74415"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/categories?post=74415"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/tags?post=74415"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/topic?post=74415"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}