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.

Updated Nov 13, 202610 min read
Deployment route
  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. 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.

  6. 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.

Technical blueprint showing Claude Code project context flowing into a Hermes agent, repository tools, and messaging delivery.
Configuration and CLI orchestration connect the two tools; model and subscription credentials remain separate.

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.

  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. 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.

  6. 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.

Should both agents share the same project instructions?

Share stable, repository-specific facts such as build commands, architecture, and test rules. Keep personal memory, credentials, and tool-specific behavior in separate scopes.

  • Keep reusable team instructions in version control.
  • Use the same AGENTS.md when both systems support it.
  • Keep personal Claude memory out of the repository.
  • Remove instructions that assume one product's unavailable tool.
  • Audit imported rules after major repository changes.

How do you keep two coding agents from conflicting?

Use separate Git worktrees or declared file ownership, create a clean checkpoint before work, and make one agent responsible for the final diff and test run.

  • Assign one primary editor per worktree.
  • Use Hermes Git worktrees for parallel isolated checkouts.
  • Commit or stash unrelated changes before delegation.
  • Require tests and review after either agent modifies files.
  • Document the handoff so an unreviewed change is not mistaken for a completed task.

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.

Put Hermes Agent in the channel where the work already happens.