camelRun by camelAI · GitHub
GitHub AI agent for issues and pull requests
camelRun by camelAI is a hosted runtime for AI agents. Route signed GitHub webhooks into an HTTP channel or keyed agent so each issue and pull request gets durable memory, a Linux container with git and gh, and remote GitHub MCP tools.
acme/webPrivate
Issues41acme/webPrivate
Saving a long draft fails with 413 #2304
rosacommented 1 minute ago
MemberDrafts with a few images won’t save. POST /drafts comes back 413.
camelRunThis issue’s agent · asleep · 2 tool calls
acme-triagebotcommented now
This is the API’s body limit, not the editor. acme/api#871 lowered it from 10 MB to 1 MB on Oct 14, and a draft with a few images goes over that. #2290 hit the same 413 on comments and was fixed by raising the limit for /comments only. /drafts needs the same change.
Tools & containers
Give your GitHub AI agent real tools and a Linux container
Attach the bash built-in (an on-demand Linux container with git, gh, Node 24, Python 3, and ripgrep), HTTPS webhook tools, or remote GitHub MCP servers using runtime auth (short-lived Ed25519 JWTs carrying sub and act).
- On-demand Linux container
- Gives each agent CamelFS files plus
bashwithgit,gh, Node 24, Python 3, and ripgrep ($0.00005/sec while commands run, free pre-warming). - Ed25519 runtime auth for MCP
- camelRun signs every remote MCP call with a short-lived Ed25519 JWT (
sub+act) so your server never puts raw GitHub tokens in the model context.
Pull requests
An AI agent on every pull request
Route pull request webhooks into a keyed agent per PR. It inspects the diff with git, gh, or remote GitHub MCP tools, answers review follow-ups with full thread context, and batches rapid pushes into one run.
acme/apiPrivate
Pulls4acme/apiPrivate
Raise the body limit for /drafts #874
dana wants to merge 4 commits into main from dana/drafts-limit
Memory
An AI agent for GitHub issues that remembers the whole thread
Upsert one keyed agent per issue or pull request (gh-acme-web-2304) and let it sleep at $0 between webhooks. Route a comment days later to the same key and it wakes with the entire thread and CamelFS workspace intact.
Saving a long draft fails with 413 #2304
Openacme/web
rosacommented on Oct 15
Drafts with a few images won’t save. POST /drafts comes back 413.
acme-triagebotcommented on Oct 15
This is the API’s body limit, not the editor. acme/api#871 lowered it from 10 MB to 1 MB on Oct 14, and a draft with a few images goes over that. #2290 hit the same 413 on comments and was fixed by raising the limit for /comments only. /drafts needs the same change.
koficommented now
Member@acme-triage where does this stand?
camelRunissue_commentthe same agent · asleep
github__search_issues
{"query": "2304 repo:acme/api is:pr"}
→ #874 Raise the body limit for /drafts · merged Oct 17
github__list_commits
{"owner": "acme", "repo": "api"}
→ e98f214 Use bodyLimit() on /drafts and /comments
acme-triagebotcommented now
It’s fixed. acme/api#874 merged on Oct 17 and put /drafts and /comments on one 10 MB limit, so drafts with images save again. This can be closed.
Agents
Agents in your account. Upsert them with PUT /v2/agents/:key or route signed GitHub webhooks through an HTTP channel.
| Name | Model | Status | StatusActiveLast active | Definition |
|---|---|---|---|---|
acme/web#2304: Saving a long draft fails with 413 key gh-…-web-2304gh-acme-web-2304 azure/gpt-6.1-terra | azure/gpt-6.1-terra | Asleep | Asleepnow | triage |
acme/api#874: Raise the body limit for /drafts key gh-…-api-874gh-acme-api-874 azure/gpt-6.1-terra | azure/gpt-6.1-terra | Asleep | Asleep2d ago | triage |
acme/web#2311: Autosave loses the cursor position key gh-…-web-2311gh-acme-web-2311 azure/gpt-6.1-terra | azure/gpt-6.1-terra | Asleep | Asleep3h ago | triage |
Agents
acme/web#2304: Saving a long draft fails with 413
Asleepazure/gpt-6.1-terra· http· definition triage
github__search_issues({"query":"413 repo:acme/web"})
Result of github__search_issues
github__list_commits({"owner":"acme","repo":"api"})
Result of github__list_commits
This is the API’s body limit, not the editor. acme/api#871 lowered it from 10 MB to 1 MB on Oct 14, and a draft with a few images goes over that. #2290 hit the same 413 on comments and was fixed by raising the limit for `/comments` only. `/drafts` needs the same change.
Fork from heregithub__search_issues({"query":"2304 repo:acme/api is:pr"})
Result of github__search_issues
github__list_commits({"owner":"acme","repo":"api"})
Result of github__list_commits
It’s fixed. acme/api#874 merged on Oct 17 and put `/drafts` and `/comments` on one 10 MB limit, so drafts with images save again. This can be closed.
Fork from hereSetup via HTTP channel
Wire GitHub webhooks into camelRun v2 in three steps
camelRun v2 retired its native GitHub App channel in favor of signed HTTP channels and keyed agents. Keep your GitHub App credentials on your own server, verify X-Hub-Signature-256 at /v2/channels/:id/inbound, and give every issue or PR its own durable agent.
Configure your GitHub webhook
In your GitHub App or repository settings, pick the issue and pull request events to send and create a shared webhook secret. Your GitHub private key stays on your own server.
github.com/organizations/acme/settings/apps/acme-triageGeneralPermissions & eventsInstall AppRepository permissions
- ContentsRead-only
- IssuesRead and write
- MetadataRead-only
- Pull requestsRead and write
Subscribe to events
- Issue comment
- Issues
- Pull request
- Pull request review comment
github.com/organizations/acme/settings/apps/acme-triageGeneralPermissions & eventsInstall AppWebhook secret
whsec_••••••••9f2aShared HMACCreate an HTTP channel and definition
Save a slug-keyed definition with
bashand/or remote GitHub MCP, then create an HTTP channel configured forX-Hub-Signature-256.run.camelai.com/console/channelsNew HTTP channel
Verify X-Hub-Signature-256 on inbound GitHub webhooks at /v2/channels/:id/inbound and route into durable agents.
Kind
HTTPName
GitHub triageHMAC signing secret
••••••••••••••••webhookSettings (POST /v2/channels)
- signatureHeader: X-Hub-Signature-256
- signaturePrefix: sha256=
- idHeader: X-GitHub-Delivery (7d dedupe)
- wrap raw payload as untrusted JSON
Outbound reply URL (optional)
https://app.example.com/github/commentDefinition
triageCancelCreate channelPoint GitHub at /v2/channels/:id/inbound
Paste the channel's inbound URL (or your thin per-PR router calling PUT /v2/agents/gh-<repo>-<n>) and secret into GitHub, then install on your repositories.
HTTP channel & webhook docsgithub.com/organizations/acme/settings/apps/acme-triageGeneralPermissions & eventsInstall AppWebhook
ActiveWebhook URL
https://run.camelai.com/v2/channels/ch_8f3a61c0d29e4b7a5f12/inboundSecret
••••••••••••••••github.com/apps/acme-triage/installations/newInstall acme-triage
Only select repositories
- acme/web
- acme/api
CancelInstall
FAQ
Questions about GitHub AI agents
How do I connect an AI agent to GitHub on camelRun v2?
Create a signed HTTP channel with POST /v2/channels and configure X-Hub-Signature-256 and X-GitHub-Delivery. You can also relay webhooks through a handler that upserts each issue or pull request's agent with PUT /v2/agents/gh-<repo>-<number>.
Can an AI agent triage GitHub issues and review pull requests?
Yes. Route issue, pull request, and comment webhooks to an agent per issue or PR. Enable bash for git and gh, or connect remote GitHub tools. Queue batching groups rapid pushes into one run.
How does a GitHub agent access private repositories and my tools?
Use MCP servers with runtime auth and verify the signed JWTs against /v2/.well-known/jwks.json. HTTPS webhook tools receive agent and run IDs plus your configured headers. Keep your GitHub App private key on your backend.
Does each issue and pull request keep its own context?
Yes. A keyed agent keeps history and CamelFS files for its issue or pull request. It sleeps at $0 between webhooks and wakes on the next event.
Can a GitHub agent run git, gh, and tests in a real container?
Yes. Enable files for a versioned CamelFS workspace and bash for a Linux container with git, gh, Node 24, Python 3, and ripgrep. Pre-warming is free and billing is per active second.
Which AI models can a GitHub agent use?
Choose a model from camelRun's catalog or OpenRouter in your definition. Use your own provider keys or pay the provider's token price on platform credits.
How much does a GitHub AI agent cost to run?
Agents cost $0.05 per active hour. Active Linux containers cost $0.00005/sec ($0.18/hr), with free pre-warming. Idle, parked, and waiting agents cost $0. Storage is unmetered.
Can I self-host camelRun for my GitHub workflows?
Yes. Deploy the AGPL runtime in your Cloudflare account with Workers, Durable Objects, and R2. The GitHub relay or MCP server runs on your own servers. Read agent history and CamelFS files via the v2 API.
Saving a long draft fails with 413 #2304Closed
rosa closed this as completed now
This issue’s agentasleep, keeping the thread
Build your GitHub bot with AI
Keep each issue and pull request's durable memory, CamelFS workspace, and Linux container ready whenever a webhook arrives. $0.05 per active agent-hour, $0 while idle, and unmetered storage right now.
claude mcp add --transport http camelrun https://run.camelai.com/mcp
Adds camelRun's hosted MCP server to Claude Code (also works with Codex and ChatGPT). Signing in creates your account automatically.
Read next