Settings

Configure how cloud agents run in your workspace. These settings control model selection, resource limits, notification delivery, and per-repository behavior.

Model Selection

Cloud agents use the default model configured for your workspace. You can override this at the workspace, repository, or individual run level.

Setting the Default Model

Go to Dashboard > Settings > Cloud Agents > Default Model. Select from any model available through the Creor Gateway or your configured BYOK providers.

ModelSpeedQualityCostBest For
Claude Sonnet 4FastHigh$$General-purpose. Best default for most tasks.
Claude Opus 4SlowHighest$$$Complex reasoning, large-scale refactoring.
Claude Haiku 3.5FastestGood$Simple reviews, documentation, formatting.
GPT-4oFastHigh$$Strong alternative to Sonnet for code generation.
GPT-4o miniFastestGood$Budget-friendly option for simple tasks.

Per-Run Model Override

Override the model for a specific run by passing the model parameter in the launch request.

1
2
3
4
5
6
{
"repository": "github.com/acme/backend",
"branch": "main",
"prompt": "Refactor the payment processing module",
"model": "claude-opus-4-20250514"
}

Timeouts & Limits

Resource limits prevent runaway agents from consuming excessive credits or compute.

SettingDefaultMax (Pro)Max (Enterprise)Description
Run timeout10 min60 min120 minMaximum wall-clock time for a single run.
Max tokens200,0001,000,000UnlimitedMaximum total tokens (input + output) per run.
Max tool calls100500UnlimitedMaximum number of tool invocations per run.
Max file reads50200UnlimitedMaximum number of files the agent can read.
Container CPU2 vCPU4 vCPU8 vCPUCPU allocation for the sandboxed container.
Container RAM4 GB8 GB16 GBMemory allocation for the sandboxed container.
Container disk10 GB20 GB50 GBDisk space for repository clone and temporary files.

Note

When a limit is reached, the agent stops gracefully and returns whatever results it has collected so far. The run status shows which limit was hit.

Monthly Spending Cap

Set a monthly spending cap to prevent unexpected charges. When the cap is reached, new agent runs are blocked until the next billing cycle or until you increase the cap.

1
2
3
4
5
6
7
8
9
# Set monthly spending cap via API
curl -X PUT https://api.creor.ai/v1/workspace/settings \
-H "Authorization: Bearer $CREOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"cloudAgents": {
"monthlySpendingCap": 50.00
}
}'

Webhooks

Configure webhooks to receive real-time notifications about cloud agent events. Webhooks are delivered as HTTP POST requests with a JSON payload.

Supported Events

EventTriggerPayload Includes
agent.startedAgent run begins executionRun ID, repository, branch, model
agent.completedAgent run finishes successfullyRun ID, artifacts, token usage, duration
agent.failedAgent run fails or times outRun ID, error message, partial results
agent.commentBugbot posts a PR commentRun ID, comment body, file path, line number

Webhook Configuration

1
2
3
4
5
6
7
8
9
# Configure a webhook endpoint
curl -X POST https://api.creor.ai/v1/webhooks \
-H "Authorization: Bearer $CREOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://your-server.com/webhooks/creor",
"events": ["agent.completed", "agent.failed"],
"secret": "whsec_your_signing_secret"
}'

Webhook payloads are signed using HMAC-SHA256 with the secret you provide. Verify the signature in the X-Creor-Signature header to confirm the request is from Creor.

1
2
3
4
5
6
7
8
9
10
11
12
13
# Verify webhook signature (Node.js example)
import crypto from 'crypto';
 
function verifyWebhook(payload: string, signature: string, secret: string): boolean {
const expected = crypto
.createHmac('sha256', secret)
.update(payload)
.digest('hex');
return crypto.timingSafeEqual(
Buffer.from(signature),
Buffer.from(expected)
);
}

Per-Repository Overrides

Override workspace-level settings for specific repositories. This is useful when different projects need different models, timeouts, or agent behaviors.

1
2
3
4
5
6
7
8
9
10
11
12
# Set per-repository overrides
curl -X PUT https://api.creor.ai/v1/repos/acme/backend/settings \
-H "Authorization: Bearer $CREOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"cloudAgents": {
"defaultModel": "claude-opus-4-20250514",
"timeout": 30,
"maxTokens": 500000,
"instructions": "This is a Go backend. Use standard library where possible. Follow the patterns in CONTRIBUTING.md."
}
}'

Repository-level settings override workspace-level settings. Run-level settings (passed in the launch request) override both.

Tip

Use the instructions field to give the agent project-specific context that applies to every run on that repository. This is especially useful for conventions, frameworks, and domain knowledge.

Environment Variables

Cloud agents can access environment variables you define in the workspace settings. These are injected into the container at runtime.

VariablePurposeExample
CREOR_AGENT_MODELOverride default model from environmentclaude-sonnet-4-20250514
CREOR_AGENT_TIMEOUTOverride default timeout (minutes)30
Custom variablesPassed to the shell environmentDATABASE_URL, API_BASE_URL

Warning

Do not put sensitive credentials (database passwords, API keys) in cloud agent environment variables unless you trust the agent's sandboxed environment. The agent's shell can read all injected environment variables.

Full Settings Reference

Complete settings object with all cloud agent configuration options.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{
"cloudAgents": {
"defaultModel": "claude-sonnet-4-20250514",
"timeout": 10,
"maxTokens": 200000,
"maxToolCalls": 100,
"maxFileReads": 50,
"monthlySpendingCap": 100.00,
"instructions": "",
"webhooks": [
{
"url": "https://example.com/hooks/creor",
"events": ["agent.completed", "agent.failed"],
"secret": "whsec_..."
}
],
"env": {
"NODE_ENV": "production"
},
"repos": {
"acme/backend": {
"defaultModel": "claude-opus-4-20250514",
"timeout": 30,
"instructions": "Go backend. Follow CONTRIBUTING.md."
}
}
}
}