All guides · API quickstart · Last checked: Hermes Agent documentation, November 2026; the requests it sends were tested against our live API
- 1. Create an accountSign up in a minute and get $5 of free credit. Already a customer? Sign in.
- 2. Make an API keyIn your account, open AI API and press Create key. Keys start with
dgk_. Keep yours secret. - 3. Follow the steps belowCopy each block, paste your key where it says
dgk_your_key_here.
1. Point Hermes at Datagram
The quickest way is Hermes's own setup. Run:
hermes model
Choose Custom endpoint and enter:
- API base URL
https://api.datagram.net/v1- API key
- your
dgk_key - Model
qwen3-coder:30b-64k- Context length
65536
Hermes keeps the key in ~/.hermes/.env and the rest in ~/.hermes/config.yaml.
Or edit the config file
Put your key in ~/.hermes/.env:
DATAGRAM_API_KEY=dgk_your_key_here
and this in ~/.hermes/config.yaml:
model:
provider: custom
base_url: https://api.datagram.net/v1
key_env: DATAGRAM_API_KEY
default: qwen3-coder:30b-64k
context_length: 65536
hermes doctor checks the settings.
2. Try it
Run hermes and give it a small task. The first answer can take 10 to 20 seconds while the model loads.
If something goes wrong
Hermes says the context is too small
Hermes needs at least 64,000 tokens. Use qwen3-coder:30b-64k with context_length: 65536; our other models have 8,192.
401 "Missing API key" or "Invalid or revoked API key"
Check ~/.hermes/.env has your dgk_ key under the name the config uses, then run hermes doctor.
402 "credit has run out"
Add credit in your account under AI API. Credit never expires.
Questions
Why does it have to be the 64K model?
Hermes refuses to start agent sessions with less than 64,000 tokens of context. qwen3-coder:30b-64k has 65,536; our other models have 8,192.
Does it work in Buzz?
Yes. Buzz runs Hermes with the same settings in ~/.hermes, so set it up here first. See our Buzz guide.
Is it private?
Yes. Requests run on our own Macs in our datacenter, and we never store prompts or answers, only counts for billing.