Integration
Connect Braintrust to DefiLlama
When something happens in Braintrust, your agent does the next thing in DefiLlama. Describe it in plain language and the automation is built, tested on every branch and kept running.
Build it
What do you want Braintrust and DefiLlama to do together?
Describe it and your agent reads both APIs, builds the automation, tests every branch and ships it. The list below is what exists today, not the limit.
Ask the assistant
You'll sign in before anything runs. What you typed comes with you.
Or work from Claude Code
Install the APIANT plugin for Claude Code and build, edit, test and read run history from your terminal. Every plan gets this, including free, and it spends no assistant credits.
Connect Claude CodeEverything your agent can do with Braintrust and DefiLlama
Triggers and actions 2 triggers ยท 28 actions
Trigger
New EventTriggers when an automation creates a new event.
Trigger
New ProjectTriggers when a new project is created.
Action
Add datasetCreate a new Braintrust dataset. POST /v1/dataset
Action
Add experimentCreate a new Braintrust experiment. POST /v1/experiment
Action
Add projectCreate a new Braintrust project. POST /v1/project
Action
Add promptCreate a new Braintrust prompt. POST /v1/prompt
Action
Delete projectDelete a Braintrust project. DELETE /v1/project/{project_id}
Action
Get datasetRetrieve a Braintrust dataset by id. GET /v1/dataset/{dataset_id}
Action
Get experimentRetrieve a Braintrust experiment by id. GET /v1/experiment/{experiment_id}
Action
Get projectRetrieve a Braintrust project by id. GET /v1/project/{project_id}
Action
Get promptRetrieve a Braintrust prompt by id. GET /v1/prompt/{prompt_id}
Action
Insert dataset eventsInsert one or more rows/events into a Braintrust dataset. POST /v1/dataset/{dataset_id}/insert
Action
Insert experiment eventsInsert one or more events (spans/rows) into a Braintrust experiment. POST /v1/experiment/{experiment_id}/insert
Action
Insert project logs eventsInsert one or more log events into a Braintrust project's logs. POST /v1/project_logs/{project_id}/insert
Action
List datasetsList Braintrust datasets. GET /v1/dataset
Action
List experimentsList Braintrust experiments. GET /v1/experiment
Action
List projectsList all Braintrust projects. GET /v1/project
Action
List promptsList Braintrust prompts. GET /v1/prompt
Action
Update projectPartially update a Braintrust project. PATCH /v1/project/{project_id}
Action
Get current protocol TVLSimplified endpoint returning just the current TVL number for a protocol. GET https://api.llama.fi/tvl/{protocol}. Path param: protocol slug.
Action
Get current token pricesGet current prices of tokens by contract address / coingecko id. GET https://coins.llama.fi/prices/current/{coins} where coins is a comma-separated list like "ethereum:0x...,coingecko:bitcoin".
Action
Get historical chain TVLGet historical TVL (excludes liquid staking/double counting) for a specific chain. GET https://api.llama.fi/v2/historicalChainTvl/{chain}. Path param: chain slug.
Action
Get historical token pricesGet historical prices of tokens at a given unix timestamp. GET https://coins.llama.fi/prices/historical/{timestamp}/{coins}.
Action
Get protocol fees summaryGet summary of fees and revenue for a protocol. GET https://api.llama.fi/summary/fees/{protocol}. Path param: protocol slug.
Action
Get protocol TVL detailsGet historical TVL of a protocol and breakdowns by token and chain. GET https://api.llama.fi/protocol/{protocol}. Path param: protocol slug.
Action
Get stablecoin detailsGet historical mcap and chain distribution for a specific stablecoin. GET https://stablecoins.llama.fi/stablecoin/{asset}. Path param: stablecoin id/asset.
Action
List chains TVLGet current TVL of all chains. GET https://api.llama.fi/v2/chains.
Action
List protocolsList all protocols on DefiLlama along with their current TVL. GET https://api.llama.fi/protocols. No auth required.
Action
List stablecoin chainsGet current stablecoin market cap on each chain. GET https://stablecoins.llama.fi/stablecoinchains.
Action
List stablecoinsList all stablecoins along with their circulating supply. GET https://stablecoins.llama.fi/stablecoins.
No trigger or action matches that. Ask your agent to add it: it reads the API documentation and builds what you describe.