# Welcome

The OnChainBrain Framework is an open-source platform for creating on-chain AI agents. Whether you're an individual or a company, you can create intelligent agents that anyone can interact with seamlessly.

Powered by OLLM (OnChainBrain Language and Logic Modules), the framework ensures seamless on-chain interaction and intelligent responses. A key feature of the framework is OCM

\
The **OCB Framework** integrates a variety of **LLMs (Large Language Models)** and cutting-edge tools, enabling seamless AI-driven workflows. Key integrations include:

* **OpenAI** → Industry-leading models for natural language processing and advanced AI interactions.
* **Meta** → Robust AI solutions for research and deployment at scale.
* **LUMA AI** → Specializes in visual intelligence and multimodal AI applications..
* **DeepSeek** **R1**→ Brand new Advanced AI models for in-depth data analysis and innovative AI applications.
* **Grok** → Early testing (est. **Q1**)

This diverse ecosystem empowers developers to **define, customize, and deploy AI agents** tailored to specific use cases, including blockchain integration, natural language processing, and more.

This broad integration allows OCB to leverage the strengths of different models for **AI agent development, deployment, and blockchain interactions on the Solana main-net**. 🚀

***

## Getting started with the OCB Framework

* **Define your agent**:

{% hint style="info" %}
**Define an AI agent’s behavior and purpose** in just a few lines of code.\
**Customize** its skills, responses, and workflows to suit your needs.\
**Seamlessly integrate** with APIs, databases, or blockchain networks.\
**Fine-tune and scale** effortlessly, adapting to real-world scenarios.

**Whether for automation, AI-driven assistants, or smart contracts, your agent is ready to work!**&#x20;
{% endhint %}

***

```javascript
codeconst agentConfig = {
  name: "Codex",
  description: "Solana developer insides assistant",
  behaviors: ["Fetch market cap", "Provide trending tokens"],
};
deployAgent(agentConfig);
```

***

```javascript

import { deployAgent } from "ocb-framework";

const agentConfig = {
  name: "Codex",
  description: "Solana developer insides assistant",
  capabilities: ["Fetch market cap", "Identify trending tokens"],
};

deployAgent(agentConfig).then(() => {
  console.log("Agent deployed successfully!");
});
```

***

* **Chose OLLM**

{% hint style="warning" %}
To leverage the full potential of the **OCB Framework**, it is necessary to configure the `.env` file with the **API\_KEY** for the services and AI platforms you wish to utilize for your agent.
{% endhint %}

{% hint style="danger" %}
**Atleast one LLM API key is required to run your agent.**
{% endhint %}

<pre class="language-javascript"><code class="lang-javascript">// API Keys for OCB's OLLM
<strong>OPENAI_API_KEY=your_openai_api_key
</strong>META_AI_API_KEY=your_meta_ai_api_key
LUMA_AI_API_KEY=your_luma_ai_api_key
DEEPSEEK_API_KEY=your_deepseek_api_key
GROK_API_KEY=your_grok_api_key // Early development

// Required for blockchain interaction
BLOCKCHAIN_RPC_URL=https://api.mainnet-beta.solana.com

// Detailed blockchain analytics
BITQUERY_API_KEY=your_bitquery_api_key

// The Private key to the wallet the agent will be utilizing
PRIVATE_KEY = your_wallet_private_key
</code></pre>

***

* **Deploy Agent**

```javascript
npm run run-ocb
```

***

### Official Links <a href="#official-links" id="official-links"></a>
