curl --request PUT \
--url https://api.eddy.engineer/v1/me/llm-provider \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"api_key": "<string>",
"api_version": "<string>",
"aws_access_key_id": "<string>",
"aws_secret_access_key": "<string>",
"azure_endpoint": "<string>",
"base_url": "<string>",
"models": [
"<string>"
],
"project_id": "<string>",
"publisher": "<string>",
"region": "<string>",
"service_account_json": "<string>"
}
'import requests
url = "https://api.eddy.engineer/v1/me/llm-provider"
payload = {
"api_key": "<string>",
"api_version": "<string>",
"aws_access_key_id": "<string>",
"aws_secret_access_key": "<string>",
"azure_endpoint": "<string>",
"base_url": "<string>",
"models": ["<string>"],
"project_id": "<string>",
"publisher": "<string>",
"region": "<string>",
"service_account_json": "<string>"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
api_key: '<string>',
api_version: '<string>',
aws_access_key_id: '<string>',
aws_secret_access_key: '<string>',
azure_endpoint: '<string>',
base_url: '<string>',
models: ['<string>'],
project_id: '<string>',
publisher: '<string>',
region: '<string>',
service_account_json: '<string>'
})
};
fetch('https://api.eddy.engineer/v1/me/llm-provider', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.eddy.engineer/v1/me/llm-provider",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'api_key' => '<string>',
'api_version' => '<string>',
'aws_access_key_id' => '<string>',
'aws_secret_access_key' => '<string>',
'azure_endpoint' => '<string>',
'base_url' => '<string>',
'models' => [
'<string>'
],
'project_id' => '<string>',
'publisher' => '<string>',
'region' => '<string>',
'service_account_json' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.eddy.engineer/v1/me/llm-provider"
payload := strings.NewReader("{\n \"api_key\": \"<string>\",\n \"api_version\": \"<string>\",\n \"aws_access_key_id\": \"<string>\",\n \"aws_secret_access_key\": \"<string>\",\n \"azure_endpoint\": \"<string>\",\n \"base_url\": \"<string>\",\n \"models\": [\n \"<string>\"\n ],\n \"project_id\": \"<string>\",\n \"publisher\": \"<string>\",\n \"region\": \"<string>\",\n \"service_account_json\": \"<string>\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.eddy.engineer/v1/me/llm-provider")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"api_key\": \"<string>\",\n \"api_version\": \"<string>\",\n \"aws_access_key_id\": \"<string>\",\n \"aws_secret_access_key\": \"<string>\",\n \"azure_endpoint\": \"<string>\",\n \"base_url\": \"<string>\",\n \"models\": [\n \"<string>\"\n ],\n \"project_id\": \"<string>\",\n \"publisher\": \"<string>\",\n \"region\": \"<string>\",\n \"service_account_json\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/me/llm-provider")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"api_key\": \"<string>\",\n \"api_version\": \"<string>\",\n \"aws_access_key_id\": \"<string>\",\n \"aws_secret_access_key\": \"<string>\",\n \"azure_endpoint\": \"<string>\",\n \"base_url\": \"<string>\",\n \"models\": [\n \"<string>\"\n ],\n \"project_id\": \"<string>\",\n \"publisher\": \"<string>\",\n \"region\": \"<string>\",\n \"service_account_json\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"can_set_org": true,
"effective": "managed",
"kms": "<string>",
"org": {},
"org_id": "<string>",
"provider": "<string>",
"providers": [
{
"base_url": "<string>",
"fields": [
{}
],
"id": "<string>",
"label": "<string>",
"via": "direct"
}
],
"source": "user",
"user": {}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}Set or clear your own model key (CR5; Anthropic direct, other providers through the gateway)
provider: anthropic with api_key stores the caller’s own Anthropic key (scope: user, the default) or, for an org admin, the org’s (scope: org), sealed under its own data key wrapped by the deployment’s key-encryption key; calls then go to Anthropic directly. Any other provider TrueFoundry fronts — OpenAI, Gemini, Mistral, Groq, Together, OpenRouter, Cohere, Perplexity, xAI, Cerebras, DeepInfra, SambaNova, AI21, Baseten, Azure OpenAI, Microsoft Foundry, AWS Bedrock, Google Vertex AI, or any OpenAI-compatible API (Moonshot, DeepSeek and Fireworks as presets) — with its credential and models provisions, on the TrueFoundry control plane, a provider account holding the key and those models (validated by a dry run first), a virtual account, and a role binding letting it use only that account; the virtual account’s token is sealed and stored, and calls then go through the gateway as that tenant (the key itself is held by TrueFoundry; the engine keeps its fingerprint). provider: managed clears the key — for a gateway provider it deletes the role binding, virtual account and provider account first, and a control plane that cannot be reached leaves the setting as it was (502). Set and clear only: no key is ever logged, put in a URL or answered, and a refusal never echoes one. Refused 403 for an app or an agent run, 503 KMS_UNCONFIGURED (Anthropic) or LLM_CONTROL_PLANE_UNCONFIGURED / LLM_UNCONFIGURED / SEAL_UNCONFIGURED (gateway providers) when the deployment cannot hold the key, 400 PROVIDER_REJECTED when TrueFoundry refuses it.
curl --request PUT \
--url https://api.eddy.engineer/v1/me/llm-provider \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"api_key": "<string>",
"api_version": "<string>",
"aws_access_key_id": "<string>",
"aws_secret_access_key": "<string>",
"azure_endpoint": "<string>",
"base_url": "<string>",
"models": [
"<string>"
],
"project_id": "<string>",
"publisher": "<string>",
"region": "<string>",
"service_account_json": "<string>"
}
'import requests
url = "https://api.eddy.engineer/v1/me/llm-provider"
payload = {
"api_key": "<string>",
"api_version": "<string>",
"aws_access_key_id": "<string>",
"aws_secret_access_key": "<string>",
"azure_endpoint": "<string>",
"base_url": "<string>",
"models": ["<string>"],
"project_id": "<string>",
"publisher": "<string>",
"region": "<string>",
"service_account_json": "<string>"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
api_key: '<string>',
api_version: '<string>',
aws_access_key_id: '<string>',
aws_secret_access_key: '<string>',
azure_endpoint: '<string>',
base_url: '<string>',
models: ['<string>'],
project_id: '<string>',
publisher: '<string>',
region: '<string>',
service_account_json: '<string>'
})
};
fetch('https://api.eddy.engineer/v1/me/llm-provider', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.eddy.engineer/v1/me/llm-provider",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'api_key' => '<string>',
'api_version' => '<string>',
'aws_access_key_id' => '<string>',
'aws_secret_access_key' => '<string>',
'azure_endpoint' => '<string>',
'base_url' => '<string>',
'models' => [
'<string>'
],
'project_id' => '<string>',
'publisher' => '<string>',
'region' => '<string>',
'service_account_json' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.eddy.engineer/v1/me/llm-provider"
payload := strings.NewReader("{\n \"api_key\": \"<string>\",\n \"api_version\": \"<string>\",\n \"aws_access_key_id\": \"<string>\",\n \"aws_secret_access_key\": \"<string>\",\n \"azure_endpoint\": \"<string>\",\n \"base_url\": \"<string>\",\n \"models\": [\n \"<string>\"\n ],\n \"project_id\": \"<string>\",\n \"publisher\": \"<string>\",\n \"region\": \"<string>\",\n \"service_account_json\": \"<string>\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.eddy.engineer/v1/me/llm-provider")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"api_key\": \"<string>\",\n \"api_version\": \"<string>\",\n \"aws_access_key_id\": \"<string>\",\n \"aws_secret_access_key\": \"<string>\",\n \"azure_endpoint\": \"<string>\",\n \"base_url\": \"<string>\",\n \"models\": [\n \"<string>\"\n ],\n \"project_id\": \"<string>\",\n \"publisher\": \"<string>\",\n \"region\": \"<string>\",\n \"service_account_json\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/me/llm-provider")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"api_key\": \"<string>\",\n \"api_version\": \"<string>\",\n \"aws_access_key_id\": \"<string>\",\n \"aws_secret_access_key\": \"<string>\",\n \"azure_endpoint\": \"<string>\",\n \"base_url\": \"<string>\",\n \"models\": [\n \"<string>\"\n ],\n \"project_id\": \"<string>\",\n \"publisher\": \"<string>\",\n \"region\": \"<string>\",\n \"service_account_json\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"can_set_org": true,
"effective": "managed",
"kms": "<string>",
"org": {},
"org_id": "<string>",
"provider": "<string>",
"providers": [
{
"base_url": "<string>",
"fields": [
{}
],
"id": "<string>",
"label": "<string>",
"via": "direct"
}
],
"source": "user",
"user": {}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}Body
anthropic (direct), a gateway provider (GET's providers lists each with the fields it takes), or managed (clear)
anthropic, openai, google-gemini, mistral-ai, groq, together-ai, openrouter, cohere, perplexity-ai, xai, cerebras, deepinfra, sambanova, ai21, baseten, azure-openai, microsoft-foundry, aws-bedrock, google-vertex, openai-compatible, moonshot, deepseek, fireworks, managed Response
The provider setting after the change (never the key)