The Smart Ape 🔥 Profile picture
Father | Building @BasePumpFUN and @Yapexdotai | I do technical stuff hard to explain | Love you Mom | Nothing is financial advice | DM open 📩 |

Oct 29, 2024, 16 tweets

Don’t just buy AI memes. Create them!

This skill is making new millionaires!

Here’s how to build an AI agent with a wallet and an X account, all without any coding skills 🧵🔽

I’ve just discovered how to create an AI agent with a wallet and an X account that can perform on-chain operations autonomously or under control, all without coding skills!

Let me walk you through the steps to set it up on Base 👇

To get started, we’ll use a template that has all the code needed.

Find it here:

Click "Use Template" to fork the code. replit.com/@KevinLeffew1/…

Once forked, the entire code is now in your workspace where you can execute it.

But before running it, you'll need:

• Base Developer Platform API – For on-chain operations.
• ChatGPT-4 API – Your AI agent will be built on OpenAI’s model.

Getting the Base Developer Platform API:

• Go to
• Create an account or log in if you already have one.
• Click on "Create API Key."
• Save your key in JSON format in a secure location, as you won’t be able to view it again on the platform. cdp.coinbase.com

Getting the OpenAI API:

• Go to
• Click on the top-left corner, then “Create project.”
• Click on "API keys" and generate a key, saving it securely.
• Next, go to "Settings" in the top right, then to "Billing," and add funds (minimum $5). platform.openai.com/chat-completio…

Note: OpenAI APIs operate on a pay-as-you-go model, meaning the more you interact with the AI agent, the more you'll be billed.

To enable your agent to generate images (useful for NFTs, for instance), uncomment line 352 in the "agents" file.

Now, let’s integrate the APIs into the code securely:

• Go to "Secrets" under the "Tools" panel.
• Enter each API in the corresponding variable and click "Add Secret."

The APIs are now added as environment variables.

You’re now ready to run the code by clicking the green "RUN" button.

You can choose from three modes:

• Chat
• Auto
• Two-agent

In Auto Mode, the agent acts independently; in this example, it requests $ETH from a faucet and deploys an NFT collection.

In Chat Mode, you can prompt the agent to perform various on-chain actions like:

• Creating a token
• Sending $ETH to an address
• Generating an image and minting it as an NFT

All of this is verifiable on-chain.

My agent has its own EVM address, holding the private key exclusively.

On BaseScan, you can view:

• Faucets it has requested
• Tokens it created
• NFTs it deployed
• Transactions it conducted

Your AI agent can also post on Twitter autonomously (like $GOAT) or under control by specifying when and what to post.

To enable this, uncomment lines 362 to 436 and enter the Twitter API details.

You can modify the code to add new functionalities if you're a developer.

You could also ask ChatGPT to add functions for you.

This template, developed by @MurrLincoln, makes it super accessible, even for non-developers!

That’s a wrap!

Make sure to join Telegram for the recent alpha! 👇
t.me/alpha_smartApe

Mention some CTs friends:
@0xJok9r
@belizardd
@AlphaFrog13
@zucl1ck
@Mr_Lumus
@poopmandefi
@defiprincess_
@Hercules_Defi
@Only1temmy
@TweetByGerald
@0xAndrewMoh
@Haylesdefi
@DeRonin_
@kem1ks
@cryppinfluence
@0xDefiLeo
@alphabatcher
@DOLAK1NG

I hope you've found this thread helpful.

Follow me @the_smart_ape for more.

Like/Repost the quote below if you can:

Share this Scrolly Tale with your friends.

A Scrolly Tale is a new way to read Twitter threads with a more visually immersive experience.
Discover more beautiful Scrolly Tales like this.

Keep scrolling