Saltar al contenido principal
Esta página no tiene versión en español, así que te la mostramos en inglés.

Config for claude

Jobs that use the claude adaptor may require authentication. A "credential" for the claude adaptor will follow the schema below. When using the CLI, you can set up your own state.configuration by using the sample below.

Sample Configuration​

Paste this into the configuration key of your state.json file and modify the values to run jobs locally.

{
"apiKey": "sk-ant-api03-YOUR_SECRET_KEY"
}

Full Schema​

The full configuration schema describes each attribute of the credential and notes those that are required.

{
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"apiKey": {
"title": "API Key",
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Your Anthropic API token",
"type": "string",
"minLength": 1,
"examples": [
"sk-ant-api03-YOUR_SECRET_KEY"
]
},
"baseUrl": {
"title": "Base URL",
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "The URL for the endpoint of the LLM provider compatible with the Messages API for Claude",
"type": "string",
"minLength": 1,
"examples": [
"https://api.anthropic.com"
]
}
},
"type": "object",
"additionalProperties": true,
"required": [
"apiKey"
]
}