xAI Grok OAuth (SuperGrok / X Premium+)
Hermes Agent supports xAI Grok through a browser based OAuth login flow against accounts.x.ai, using either a SuperGrok subscription (grok.com) or an X Premium+
Hermes Agent supports xAI Grok through a browser-based OAuth login flow against accounts.x.ai, using either a SuperGrok subscription (grok.com) or an X Premium+ subscription (linked X account). No is required — log in once and Hermes automatically refreshes your session in the background. …
What this page covers
- Overview
- Prerequisites
- Quick Start
- Logging In Manually
- Remote / headless sessions
- Browser-only remotes (Cloud Shell, Codespaces, EC2 Instance Connect)
- How the Login Works
- Checking Login Status
- Switching Models
- Configuration Reference
- Provider aliases
- Direct-to-xAI Tools (TTS / Image / Video / Transcription / X Search)
- Models
- Environment Variables
- Troubleshooting
- Token expired — not re-logging in automatically
- Authorization timed out
- State mismatch (possible CSRF)
- Logging in from a remote server
- HTTP 403 after a successful login (tier / entitlement)
- "No xAI credentials found" error at runtime
- Logging Out
- See Also
Section outline mirrored from the official Hermes Agent documentation. Follow any heading to read the complete text on the source site.
More in Guides & Tutorials
Tips & Best Practices
A quick wins collection of practical tips that make you immediately more effective with Hermes Agent. Each section targets a different aspect — scan the headers
Run Local LLMs on Mac
This guide walks you through running a local LLM server on macOS with an OpenAI compatible API. You get full privacy, zero API costs, and surprisingly good perf
Tutorial: Daily Briefing Bot
Tutorial: Build a Daily Briefing Bot In this tutorial, you'll build a personal briefing bot that wakes up every morning, researches topics you care about, summa
Tutorial: Team Telegram Assistant
Set Up a Team Telegram Assistant This tutorial walks you through setting up a Telegram bot powered by Hermes Agent that multiple team members can use. By the en
Using Hermes as a Python Library
Hermes isn't just a CLI tool. You can import directly and use it programmatically in your own Python scripts, web applications, or automation pipelines. This gu
Use MCP with Hermes
This guide shows how to actually use MCP with Hermes Agent in day to day workflows. If the feature page explains what MCP is, this guide is about how to get val