Skip to main content

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"
]
}
},
"type": "object",
"additionalProperties": true,
"required": [
"apiKey"
]
}