Bring your own key
Run your agent on your own Anthropic or OpenAI account: paste a key and either a system prompt (Anthropic) or a Prompt id (OpenAI), and we handle the texting.
In the connect wizard, just paste: we recognise sk-ant-... as an Anthropic key and pmpt_... as an OpenAI Prompt id, and ask for whatever else is needed.
Keys
- Stored encrypted (AES-256-GCM) and only decrypted to make the call.
- Never logged, never returned by the API, never shown again after you enter them. Reads show a masked value like
sk-ant-••••Xy12. - Replace a key with
PATCH /v1/lines/:idand a newapi_key.
Model usage is billed by Anthropic or OpenAI to your account. Texts are counted as replies on your Silver Arrows plan like any other mode.
Anthropic
You give us a key and a system prompt. We run Claude on your key, with your prompt wrapped in our fixed platform rules. There are no custom tools: if your agent needs to call your own functions, put it behind a webhook instead.
curl -s -X POST "https://silverarrows.dev/v1/lines" \
-H "Authorization: Bearer $SA_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "My Claude Agent",
"keyword": "CLAUDEBOT",
"mode": "anthropic",
"api_key": "sk-ant-...",
"system_prompt": "You are a friendly assistant for Mission Bike Repair. Answer questions about hours, prices and booking."
}'
| Field | Required | Notes |
|---|---|---|
api_key |
yes | Your Anthropic key, sk-ant-.... |
system_prompt |
yes | Up to 8,000 characters. Wrapped in our fixed platform rules, like every mode. |
model |
no | An Anthropic model id. Defaults to a small, fast model. |
Thread state: there is no separate Anthropic thread. Our transcript is the conversation. Each turn we send your system prompt plus the last 20 messages with that texter.
The built-in request_schedule_consent tool is available here too. See Async and scheduled.
OpenAI
You give us the id of a Prompt you built in the OpenAI dashboard (pmpt_...) and a key. We run it with the Responses API on your account. The Prompt carries your model, instructions, files and built-in tools.
curl -s -X POST "https://silverarrows.dev/v1/lines" \
-H "Authorization: Bearer $SA_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "My OpenAI Agent",
"keyword": "ASSIST",
"mode": "openai",
"api_key": "sk-proj-...",
"prompt_id": "pmpt_abc123"
}'
How it works, per incoming text:
- Each texter gets one OpenAI conversation (
conv_...), created on their first message (seeded with the last 20 messages) and reused after that. - We call the Responses API with your Prompt, that conversation, and their message (photo URLs included as text).
- We take the response text, strip file-search citation markers, and text it back.
Function tools that need your code won't run here (a response that asks for a function_call gets the fallback text); put that agent behind a webhook instead.
If a response fails, we send the line's fallback text and log the error, with your key redacted.
Coming from the Assistants API
OpenAI shut down the Assistants API (asst_..., threads and runs) on August 26, 2026. Lines created with assistant_id before then keep that setting, but OpenAI no longer answers those calls. To move one over, open the assistant in the OpenAI dashboard, create a Prompt from it, and switch the line:
curl -s -X PATCH "https://silverarrows.dev/v1/lines/$LINE_ID" \
-H "Authorization: Bearer $SA_KEY" \
-H "Content-Type: application/json" \
-d '{"prompt_id": "pmpt_abc123"}'
When both are set, prompt_id wins. Each texter starts a new OpenAI conversation, seeded with our transcript, so nobody loses context.
Errors you might see
| Message | Fix |
|---|---|
| "The Anthropic API key was rejected (401)" | Check the key, or that it hasn't been revoked. |
| "OpenAI rejected the API key (401)" | Same, for OpenAI. |
| "OpenAI couldn't find that prompt_id with this key (404)" | The pmpt_... id belongs to a different project than the key. |
| "OpenAI shut down the Assistants API..." | The line still uses assistant_id. Set prompt_id (see above). |
| "rate limited (429)" | Your provider account is out of quota or rate limited. |
Run POST /v1/lines/:id/test after any change.