osirAgentConfigure
osirAgentConfigure: Connect the user's AI agent (e.g. Hermes) to a model provider - 'connect my Hermes to DeepSeek'. Providers: deepseek, openai, openrouter, anthropic. The API key is stored as an encrypted secret, never written into a file or shown again, and the agent restarts on the user's VPS with it. Never paste the key anywhere else. Requires authentication.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"agentId": "<agentId>",
"provider": "<provider>",
"apiKey": "<apiKey>"
},
"name": "osirAgentConfigure"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| apiKey | Yes | The user's API key for that provider. Never logged or returned. | |
| agentId | Yes | Agent id from osirAgentList or osirAgentDeploy. | |
| provider | Yes | Model provider: 'deepseek', 'openai', 'openrouter' or 'anthropic'. | |
| sessionKey | No | Session key (osk_...) returned by checkDeviceLoginStatus. Pass it on every call when logged in via the in-chat device flow; omit when connected via OAuth. |