# Hermes Agent

Use Hermes Agent with LM Studio

Hermes Agent now supports LM Studio as a first class model provider. It comes with JIT loading with higher context length (64K) and reasoning effort support.

See: [Hermes Agent Docs](https://hermes-agent.nousresearch.com/docs/integrations/providers#lm-studio--desktop-app-with-local-models).

## Setup

### Start LM Studio's local server

Make sure LM Studio is running as a server (default port `1234`).

You can start it from the app, or from the terminal with `lms`:

```
lms server start --port 1234
```

### Run Hermes Agent with LM Studio as model provider

Run your hermes setup with the following command:

```
hermes setup
```

or if you have hermes setup already, run

```
hermes model
```

and complete the interactive setup with LM Studio as your model provider.

### Alternative: Non-interactive CLI setup

Pro Tip

Use a model with more than ~64k context length. Tools like Hermes Agent can consume a lot of context and have better experience with longer context.

If you're running into trouble, hop onto our [Discord](https://discord.gg/lmstudio)

[Codex](/content/docs/integrations/codex/index.html)  
[OpenClaw](/content/docs/integrations/openclaw/index.html)
