The iAgent SDK is a comprehensive framework for building applications on the Injective Chain, offering:
This SDK enables rapid development of secure, reliable applications within Injective's DeFi ecosystem.
Note: Requires Node.js version 23 or higher
git clone https://github.com/InjectiveLabs/iagent-ts
cd iagent-ts
pnpm i --no-frozen-lockfile && pnpm build
cp .env.example .env
.env file:# Injective Keys and Environment
INJECTIVE_PUBIC_KEY="XXXX"
INJECTIVE_PRIVATE_KEY="XXXX"
EVM_PUBLIC_KEY="XXXX"
INJECTIVE_NETWORK="Mainnet"
OPENAI_API_KEY="sks-x"
# Other application environment variables go here
Note: Get your OpenAI API key from: https://platform.openai.com/api-keys
pnpm start
pnpm start:client
To modify the default character, edit src/character.ts
Load custom character configurations:
pnpm start --characters="path/to/your/character.json"
Note: Multiple character files can be loaded simultaneously
You can configure clients in two ways:
character.ts:clients: [Clients.TWITTER, Clients.DISCORD],
plugins: [injectivePlugin]
character.json:{
"clients": ["twitter", "discord"]
}
Connection Issues
Transaction Failures
For more detailed information, refer to:
We welcome contributions! Please:
For support:
4 commits
TypeScript
95.6%
PLpgSQL
1.7%
Shell
1.4%
JavaScript
1.1%
The iAgent SDK is a comprehensive framework for building applications on the Injective Chain, offering:
This SDK enables rapid development of secure, reliable applications within Injective's DeFi ecosystem.
Note: Requires Node.js version 23 or higher
git clone https://github.com/InjectiveLabs/iagent-ts
cd iagent-ts
pnpm i --no-frozen-lockfile && pnpm build
cp .env.example .env
.env file:# Injective Keys and Environment
INJECTIVE_PUBIC_KEY="XXXX"
INJECTIVE_PRIVATE_KEY="XXXX"
EVM_PUBLIC_KEY="XXXX"
INJECTIVE_NETWORK="Mainnet"
OPENAI_API_KEY="sks-x"
# Other application environment variables go here
Note: Get your OpenAI API key from: https://platform.openai.com/api-keys
pnpm start
pnpm start:client
To modify the default character, edit src/character.ts
Load custom character configurations:
pnpm start --characters="path/to/your/character.json"
Note: Multiple character files can be loaded simultaneously
You can configure clients in two ways:
character.ts:clients: [Clients.TWITTER, Clients.DISCORD],
plugins: [injectivePlugin]
character.json:{
"clients": ["twitter", "discord"]
}
Connection Issues
Transaction Failures
For more detailed information, refer to:
We welcome contributions! Please:
For support:
4 commits
TypeScript
95.6%
PLpgSQL
1.7%
Shell
1.4%
JavaScript
1.1%