uncensored opencode

Tool calling

Every model on the line calls tools. This is what an agent harness relies on, so it is the part worth knowing exactly.

In the OpenAI format

curl
curl https://uncensoredopencode.com/v1/chat/completions \
  -H "Authorization: Bearer $UNCENSORED_OPENCODE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "glm-5.3-flash-uncensored",
    "messages": [{"role": "user", "content": "What is in the current directory?"}],
    "tools": [{"type": "function", "function": {"name": "list_files", "description": "List files in a directory", "parameters": {"type": "object", "properties": {"path": {"type": "string"}}, "required": ["path"]}}}]
  }'

The reply's message.tool_calls holds the call. Run it, then send the result back as a tool message with the matching tool_call_id.

What to know