@@ -18,55 +18,6 @@ A DeFi agent built using Langchain and powered by CDP SDK, operating over the XM
18
18
- [ Coinbase Developer Platform] ( https://portal.cdp.coinbase.com ) (CDP) API credentials
19
19
- Yarn package manager
20
20
21
- ## Quick Start Guide
22
-
23
- Follow these steps to get your x agent up and running:
24
-
25
- 1 . ** Clone the repository** :
26
-
27
- ``` bash
28
- git clone https://github.com/ephemeraHQ/xmtp-agent-examples.git
29
- cd examples/coinbase-langchain
30
- ```
31
-
32
- 2 . ** Install dependencies** :
33
-
34
- ``` bash
35
- yarn install
36
- ```
37
-
38
- 3 . ** Set up your environment variables** :
39
- Create a ` .env ` file like in ` .env.example ` :
40
-
41
- ``` bash
42
- WALLET_KEY= # the private key for the wallet
43
- ENCRYPTION_KEY= # the encryption key for the wallet
44
- # public key is
45
-
46
- NETWORK_ID=base-sepolia # base-mainnet or others
47
- OPENAI_API_KEY= # the OpenAI API key
48
- CDP_API_KEY_NAME= # the name of the CDP API key
49
- CDP_API_KEY_PRIVATE_KEY= # the private key for the CDP API key
50
- XMTP_ENV=local # the environment to use for XMTP
51
- REDIS_URL= # the URL for the Redis database
52
- ```
53
-
54
- 4 . ** Start the agent** :
55
-
56
- ``` bash
57
- yarn dev
58
- ```
59
-
60
- 5 . ** Interact with your agent** :
61
-
62
- Once running, you'll see a URL in the console like:
63
-
64
- ``` bash
65
- Send a message on http://xmtp.chat/dm/YOUR_AGENT_ADDRESS? env=dev
66
- ```
67
-
68
- Open this URL in your browser to start chatting with your agent!
69
-
70
21
## Usage Examples
71
22
72
23
Once the agent is running, you can interact with it using natural language commands:
@@ -103,3 +54,19 @@ This agent combines key technologies:
103
54
104
55
- System falls back to local storage if Redis fails
105
56
- Check permissions and connection URLs
57
+
58
+ ## Run the agent
59
+
60
+ ``` bash
61
+ # git clone repo
62
+ git clone https://github.com/ephemeraHQ/xmtp-agent-examples.git
63
+ # go to the folder
64
+ cd xmtp-agent-examples
65
+ cd examples/coinbase-langchain
66
+ # install packages
67
+ yarn
68
+ # generate random xmtp keys (optional)
69
+ yarn gen:keys
70
+ # run the example
71
+ yarn dev
72
+ ```
0 commit comments