Agents
Create an agent
POST
/
api
/
agents
Create an agent
curl --request POST \
--url https://litellm-rust.onrender.com/api/agents \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "my-agent",
"owner_id": "local-user",
"runtime": "cursor",
"model": "claude-opus-4-5",
"system": "You are a helpful assistant.",
"description": "<string>",
"prompt": "<string>",
"config": {},
"tools": [
{}
]
}
'import requests
url = "https://litellm-rust.onrender.com/api/agents"
payload = {
"name": "my-agent",
"owner_id": "local-user",
"runtime": "cursor",
"model": "claude-opus-4-5",
"system": "You are a helpful assistant.",
"description": "<string>",
"prompt": "<string>",
"config": {},
"tools": [{}]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'my-agent',
owner_id: 'local-user',
runtime: 'cursor',
model: 'claude-opus-4-5',
system: 'You are a helpful assistant.',
description: '<string>',
prompt: '<string>',
config: {},
tools: [{}]
})
};
fetch('https://litellm-rust.onrender.com/api/agents', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "<string>",
"name": "my-agent",
"model": "claude-opus-4-5",
"system": "<string>",
"tools": {},
"config": {},
"owner_id": "<string>",
"status": "paused",
"description": "<string>",
"harness": "claude-code",
"created_at": 123
}Authorizations
Body
application/json
Response
Agent created
⌘I
Create an agent
curl --request POST \
--url https://litellm-rust.onrender.com/api/agents \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "my-agent",
"owner_id": "local-user",
"runtime": "cursor",
"model": "claude-opus-4-5",
"system": "You are a helpful assistant.",
"description": "<string>",
"prompt": "<string>",
"config": {},
"tools": [
{}
]
}
'import requests
url = "https://litellm-rust.onrender.com/api/agents"
payload = {
"name": "my-agent",
"owner_id": "local-user",
"runtime": "cursor",
"model": "claude-opus-4-5",
"system": "You are a helpful assistant.",
"description": "<string>",
"prompt": "<string>",
"config": {},
"tools": [{}]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'my-agent',
owner_id: 'local-user',
runtime: 'cursor',
model: 'claude-opus-4-5',
system: 'You are a helpful assistant.',
description: '<string>',
prompt: '<string>',
config: {},
tools: [{}]
})
};
fetch('https://litellm-rust.onrender.com/api/agents', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "<string>",
"name": "my-agent",
"model": "claude-opus-4-5",
"system": "<string>",
"tools": {},
"config": {},
"owner_id": "<string>",
"status": "paused",
"description": "<string>",
"harness": "claude-code",
"created_at": 123
}