A collection of example implementations showcasing how to build autonomous DeFi agents using Console Kit. This repository demonstrates integration patterns ranging from LLM-powered execution to automated DeFi workflows.
This scaffold serves as a starting point for developers looking to build autonomous DeFi agents. Whether you're interested in LLM-powered automation or traditional programmatic workflows, these examples provide patterns for integrating Console Kit's capabilities into your applications.
Example implementations of automated DeFi workflows using Console Kit's infrastructure. These examples demonstrate how to set up autonomous agents that can execute complex DeFi strategies while leveraging Console's policy engine and execution framework.
- Install dependencies
cd kernel-workflow && yarn
- Set up environment variables and fill all values
mv .env.example .env
-
To register your executor on console & kernel -
- Configure
ExecutorConfigConsole
,ExecutorMetadata
, andExecutorConfigKernel
on register-executor.ts as per your requirements - Run from root dir:
make run-register-executor
- Pick up
registryId
from the script's response and updateEXECUTOR_REGISTRY_ID
in your .env, for running the remaining scripts
- Configure
-
To deploy a console account that is subscribed to the automation of the executor just registered -
- Configure
AutomationSubscriptionParams
on deploy-automation-account.ts as per your requirements - Run from root dir:
make run-deploy-account
- Configure
-
To run your automation workflow -
- Modify
pollTasksAndSubmit()
on agent-workflow.ts with your automation logic. Console Kit SDK comes pre-built with native actions & helpers to make this easier - Run from root dir:
make run-agent-workflow
This will poll for your executable tasks, and run your automation periodically
- Modify
- Console Kit Docs
- Console Kit SDK
- Brahma Builder
- Brahma Builders Telegram Group (Join to get Console your API credentials)