Blog / developer integrations
Hermes Agent with Claude Code: Setup and Shared Workflows
Use Hermes Agent and Claude Code as complementary coding agents: Claude Code provides a focused terminal and IDE coding loop, while Hermes can import supported Claude Code setup and use the CLI as one tool inside a persistent multi-channel agent. Configuration import and command-line orchestration do not turn a Claude subscription into a Hermes model credential; keep those authentication boundaries separate.
- 01
Define the division of work
Decide whether Claude Code remains the focused repository editor while Hermes handles memory, schedules, messaging, and cross-system coordination.
- 02
Review the existing Claude Code setup
Inspect CLAUDE.md, AGENTS.md, settings, MCP servers, skills, hooks, and project instructions before importing or exposing them to another agent.
- 03
Import supported configuration into Hermes
Use the documented Hermes import flow for Claude Code setup, then remove unrelated personal preferences and credential references that the new runtime should not inherit.
- 04
Keep authentication paths separate
Treat Claude Code sign-in and subscription access as Claude Code authentication. Configure a supported API key or endpoint separately when Hermes itself needs a model provider.
- 05
Test one shared repository
Run the same small coding task through the chosen orchestration pattern, inspect the diff, execute the project checks, and record which agent changed each file.
- 06
Add permissions and delivery last
Only after the coding loop is stable should Hermes receive messaging access, schedules, or broader tool permissions around Claude Code.

Four-step path
How do you connect Hermes Agent with Claude Code?
Start with configuration import and one repository, then add CLI delegation only after the credential boundary and permission model are explicit.
- Step 01
Define the division of work
Decide whether Claude Code remains the focused repository editor while Hermes handles memory, schedules, messaging, and cross-system coordination.
- Step 02
Review the existing Claude Code setup
Inspect CLAUDE.md, AGENTS.md, settings, MCP servers, skills, hooks, and project instructions before importing or exposing them to another agent.
- Step 03
Import supported configuration into Hermes
Use the documented Hermes import flow for Claude Code setup, then remove unrelated personal preferences and credential references that the new runtime should not inherit.
- Step 04
Keep authentication paths separate
Treat Claude Code sign-in and subscription access as Claude Code authentication. Configure a supported API key or endpoint separately when Hermes itself needs a model provider.
- Step 05
Test one shared repository
Run the same small coding task through the chosen orchestration pattern, inspect the diff, execute the project checks, and record which agent changed each file.
- Step 06
Add permissions and delivery last
Only after the coding loop is stable should Hermes receive messaging access, schedules, or broader tool permissions around Claude Code.
Can Hermes Agent and Claude Code work together?
Yes. They can share a repository and be used in complementary roles, and Hermes documents an import path for supported Claude Code instructions, rules, MCP settings, skills, and memory. The safe setup keeps their model authentication and runtime state separate.
- Use Claude Code for a focused terminal or editor coding loop.
- Use Hermes for persistent memory, schedules, messaging, and cross-tool workflows.
- Import only the configuration that the Hermes runtime should legitimately receive.
- Review imported secrets, network access, hooks, and tool permissions before use.
How do you import Claude Code configuration into Hermes?
Hermes provides an import flow for supported Claude Code setup, including instructions, rules, MCP server configuration, skills, and memories. Import is a starting point, not an approval to carry every existing credential or permission into the new runtime.
Claude Code stores project guidance in CLAUDE.md or AGENTS.md and can maintain settings, skills, hooks, MCP servers, and auto memory under its own configuration directory. Hermes can read supported setup from `~/.claude`; inspect the imported content before enabling it because another agent's defaults may assume different tools or trust boundaries.
- Review project instructions and remove repository-specific paths that do not exist.
- Confirm every imported MCP server is still needed and trusted.
- Check hooks and skills for destructive commands or embedded credentials.
- Keep personal preferences separate from team-wide instructions.
- Do not import unrelated OAuth sessions or long-lived secrets into prompts.
Can Hermes use a Claude Code subscription directly?
Do not assume a Claude subscription or Claude Code sign-in is an API credential for Hermes. Configure Hermes with a supported provider endpoint, API key, OAuth integration, or proxy only when the official product terms explicitly authorize that use.
Claude Code can authenticate with a Claude account or Anthropic Console depending on the surface and account. Hermes model access is configured on the Hermes side. Keeping the two authentication paths distinct prevents a working Claude Code login from creating a false expectation that every other product can reuse the same entitlement.
- Keep Claude Code subscription sign-in inside Claude Code.
- Use an approved Anthropic API credential or compatible endpoint for Hermes model access.
- Store Credentials in runtime secret stores, not shared Markdown files.
- Review provider terms before using subscription tokens outside their intended client.
Can Hermes run Claude Code as a CLI tool?
Hermes can invoke an installed `claude` CLI through its terminal tools when the command is enabled and permitted. This is command-line orchestration of another product, not shared model access.
Claude Code supports interactive sessions and non-interactive `-p` queries, including piping files or logs into a request. That makes a narrow delegation pattern possible: Hermes prepares context, invokes Claude Code for a focused repository question, and then verifies the result with Git and repository tests.
- Use explicit, non-interactive commands for automation.
- Run the command in the intended repository and record its exit code.
- Do not grant unattended permission bypasses for destructive commands.
- Verify changed files and tests after Claude Code completes.
- Avoid passing secrets through command-line arguments or prompts.
What permissions should each agent receive?
Use least privilege for both agents. Importing configuration does not justify transferring production deploy keys, broad GitHub tokens, cloud credentials, or messaging secrets.
- Use dedicated repository credentials.
- Keep deploy, billing, and customer-data access outside the coding loop.
- Review hooks, MCP servers, plugins, and skills before enabling them.
- Run untrusted code in Docker or a remote sandbox.
- Rotate any credential that appears in chat, logs, or an imported file.
Which Hermes and Claude Code pattern is best?
Use Claude Code inside focused coding sessions and Hermes as the persistent coordinator. Import configuration for context, invoke Claude Code only for bounded tasks, and keep model credentials explicit.
The strongest integration is not a single shared login. It is a stable task boundary: Hermes knows the schedule, channel, and surrounding workflow; Claude Code handles the focused coding step; Git and tests provide the evidence that the handoff succeeded.
- Focused repository edit: use Claude Code directly.
- Recurring review or cross-system follow-up: coordinate from Hermes.
- Shared project rules: keep in the repository.
- Shared model access: configure and authorize each product separately.
- High-risk automation: require human review and isolated execution.
Which primary sources support this page?
Product behavior is checked against the current deployment flow. These external links provide the upstream project or channel documentation used for setup details.
Direct answers
Frequently asked questions
Can Hermes import Claude Code settings?
Hermes documents import support for supported Claude Code configuration, including instructions and other reusable setup. Review imported permissions, tools, memories, and credentials before enabling the runtime.
Does Hermes need a separate Claude API key?
Hermes needs a model provider configuration that is authorized for the Hermes runtime. Do not infer API access from a Claude Code or Claude subscription login.
Can Hermes call the Claude Code CLI?
Hermes can invoke an installed `claude` command through terminal tools when the command, backend, and permissions are configured.
Should both use the same CLAUDE.md?
Stable repository instructions can be shared when both products support the same file. Keep personal and product-specific memory separate.
Can they edit the same repository at once?
Avoid concurrent edits in one working tree. Use isolated worktrees or assign explicit ownership and make one agent verify the final diff.
What is the simplest safe setup?
Run Claude Code for the coding task, let Hermes coordinate context and delivery, share only version-controlled project instructions, and keep credentials isolated.
Key takeaways
- Use Hermes Agent and Claude Code as complementary coding agents: Claude Code provides a focused terminal and IDE coding loop, while Hermes can import supported Claude Code setup and use the CLI as one tool inside a persistent multi-channel agent. Configuration import and command-line orchestration do not turn a Claude subscription into a Hermes model credential; keep those authentication boundaries separate.
- Start with one model, one channel, and one controlled test conversation.
- Use managed hosting when deployment speed matters more than operating the server yourself.
Continue the setup
Related Hermes Agent guides
Use case
Hermes Agent for Coding: Repository Workflows and Limits
See how Hermes Agent handles repository work, terminal tools, memory, coding-channel workflows, and when Claude Code, Codex, or OpenCode is the better fit.
Read nextBlog guide
Hermes Agent with Codex: CLI, App Server, and Config
Connect Hermes Agent and Codex through imported configuration, CLI workflows, optional app-server runtime, shared repository rules, and clear auth boundaries.
Read nextUse case
Hermes Agent vs GitHub Copilot: Which Workflow Fits?
Compare Hermes Agent and GitHub Copilot by IDE assistance, agentic coding, customization, enterprise governance, persistence, channels, and model control.
Read nextUse case
Hermes Agent vs Claude Code: Which Coding Agent Fits?
Compare Hermes Agent and Claude Code by repository workflow, interfaces, memory, automation, model access, security, and ideal coding use cases.
Read nextUse case
Use Hermes Agent Inside Your Editor with ACP
Run Hermes Agent inside ACP-compatible editors such as VS Code, Zed, and JetBrains, with tool activity, file diffs, and terminal commands rendered in the editor.
Read nextBlog guide
Hermes Agent Memory and Skills: Practical Guide
Learn how Hermes Agent persistent memory and reusable skills turn repeated work into safer, more consistent workflows across channels.
Read next