
{"id":142972,"date":"2026-03-18T08:43:31","date_gmt":"2026-03-18T08:43:31","guid":{"rendered":"https:\/\/mycryptomania.com\/?p=142972"},"modified":"2026-03-18T08:43:31","modified_gmt":"2026-03-18T08:43:31","slug":"do-you-vibe-code-a-deai-primer-by-oasis","status":"publish","type":"post","link":"https:\/\/mycryptomania.com\/?p=142972","title":{"rendered":"Do You Vibe Code? A DeAI Primer By Oasis"},"content":{"rendered":"<p>AI integration is moving fast, and the accessibility to develop AI is becoming easier by the day. The <a href=\"https:\/\/oasis.net\/blog\/oasis-building-blocks-decentralized-ai\">decentralized AI (DeAI)<\/a> space has also picked up momentum as the new-gen web3 solutions all come with an AI edge. So, if you are a web3 developer, it is no longer imperative that you be a Solidity expert or know the ins and outs of building on-chain applications. Vibe coding is your\u00a0friend.<\/p>\n<p>In this guide, I will show you new tools and help you learn how to build with AI on Oasis, with privacy by default. We will be using an <strong>llms.txt<\/strong> file, a <strong>Context7<\/strong> MCP integration, for the purpose of this tutorial.<\/p>\n<h3>AI context<\/h3>\n<p>AI is prone to forgetting, and its way of remembering needs some understanding. To understand AI memory and context, check out this <a href=\"https:\/\/oasisrose.garden\/lessons\/ai-memory\/\">Oasis Academy\u00a0course<\/a>.<\/p>\n<p>Suffice it to say, large language models (LLMs) need context to respond to any prompts, especially when you are asking them to build something. So, patchy memory or outdated context might result in a code that looks correct on a quick review but fails in practice. There are two possible solutions so that the AI tool can directly access Oasis docs to correctly consult instead of hallucinating, and I will outline them\u00a0both.<\/p>\n<p><strong>llms.txt<\/strong><strong>Model context protocol\u00a0(MCP)<\/strong><\/p>\n<h3>llms.txt<\/h3>\n<p>For anyone familiar with AI, this is a standardized file format. It functions like a sitemap and is specifically designed for AI so that it can access a project\u2019s documentation as a structured index. It provides a brief description of the documentation and links to detailed markdown files for the AI to find and\u00a0read.<\/p>\n<p>For our purpose, we will be referring to these\u00a0files:<\/p>\n<p><a href=\"https:\/\/docs.oasis.io\/llms.txt\">https:\/\/docs.oasis.io\/llms.txt<\/a>\u200a\u2014\u200aa curated index with page titles, descriptions, and\u00a0URLs<a href=\"https:\/\/docs.oasis.io\/llms-full.txt\">https:\/\/docs.oasis.io\/llms-full.txt<\/a>\u200a\u2014\u200athe complete documentation content consolidated in one\u00a0file<\/p>\n<p>If the AI supports project context, such as Cursor\u2019s docs feature or a <strong>CLAUDE.md<\/strong> file, good. Alternatively, copy-pasting the URLs in the LLM chat directly works\u00a0too.<\/p>\n<p>The usefulness of having two versions is dictated by AI memory and context limits. <strong>llms.txt<\/strong> is designed for a quick overview, and <strong>llms-full.txt<\/strong> is when you need the AI to know everything, unabridged.<\/p>\n<h3>MCP<\/h3>\n<p>MCP is an open standard. If you don\u2019t use MCP, then AI will only read the prompt submitted at face value. Using MCP not only gives AI structured access to all external context\u200a\u2014\u200adocumentation, codebases, tools, and runtime information- but also enables the AI to refer to them on demand and query external tools if and when\u00a0needed.<\/p>\n<p>As mentioned earlier, Oasis documentation is indexed on <strong>Context7<\/strong>, an MCP server that serves docs to AI coding assistants. The library ID is <strong>llmstxt\/oasis_io_llms_txt<\/strong>.<\/p>\n<h3>Setting Up<\/h3>\n<p>I will show here Cursor and Claude as primary tools, as they are the most popular among vibe\u00a0coders.<\/p>\n<p><strong>Using Cursor<\/strong><\/p>\n<p>The first step is to add the following snippet to your\u00a0.cursor\/mcp.json:<br \/> json<\/p>\n<p>{<br \/>  &#8220;mcpServers&#8221;: {<br \/>    &#8220;context7&#8221;: {<br \/>      &#8220;url&#8221;: &#8220;https:\/\/mcp.context7.com\/mcp&#8221;<br \/>    }<br \/>  }<br \/>}<\/p>\n<p>This will prompt Cursor to connect to Context7. So, now when you generate code, you will have full access to the Oasis documentation. <br \/><strong>Pro tip<\/strong>: It is advisable to add a rule to your Cursor settings so that the AI always consults the Oasis docs. It can be phrased like this\u200a\u2014\u200aAlways use Context7 MCP with library ID <strong>llmstxt\/oasis_io_llms_txt<\/strong> for Oasis documentation reference.<\/p>\n<p><strong>Using Claude<\/strong><\/p>\n<p>Run:<br \/>bash<\/p>\n<p>claude mcp add &#8211;transport http context7 https:\/\/mcp.context7.com\/mcp<\/p>\n<p>The next step is to verify configuration is correctly done:<br \/>bash<\/p>\n<p>claude mcp list<\/p>\n<p>When you see context7 listed, you are good to go.<br \/><strong>Pro tip<\/strong>: The same rule applies for your project\u2019s <strong>CLAUDE.md<\/strong>\u200a\u2014\u200aAlways use <strong>Context7<\/strong> MCP with library ID <strong>llmstxt\/oasis_io_llms_txt<\/strong> for Oasis documentation reference.<\/p>\n<p><strong>Other AI\u00a0tools<\/strong><\/p>\n<p>Even though Cursor and Claude are popular choices, you may be using other AI tools such as VS Code, JetBrains, Windsurf, Zed, etc. <strong>Context7<\/strong> supports 40+ clients, and you can refer to the <a href=\"https:\/\/context7.com\/docs\/resources\/all-clients\"><strong>full list here<\/strong><\/a> to check the setup instructions specific to your tool of\u00a0choice.<\/p>\n<h3>Before We\u00a0Start<\/h3>\n<p>If you are set up, there are still a few things you will need before starting to vibe\u00a0code.<\/p>\n<p><strong>Node.js<\/strong>: This is required for Hardhat. You can check if your terminal has it installed by <strong>running node -v<\/strong>. It will show a version number, if it is already available. If not, download the LTS version from <a href=\"https:\/\/nodejs.org\/en\">https:\/\/nodejs.org\/en<\/a>, install it, then reopen your terminal and recheck to confirm successful installation.<strong>Wallet<\/strong>: Since we are working with DeAI, you will need a <a href=\"https:\/\/docs.oasis.io\/general\/manage-tokens\/#the-wallets\">wallet<\/a> with its private key. <br \/> If using CLI, refer to this: <a href=\"https:\/\/docs.oasis.io\/build\/tools\/cli\/wallet\">https:\/\/docs.oasis.io\/build\/tools\/cli\/wallet<\/a>. The best approach is to create a new <a href=\"https:\/\/metamask.io\/download\/\">MetaMask<\/a>\u00a0wallet.<strong>Testnet tokens<\/strong>: You will need testnet tokens, too, in the wallet to proceed with your vibe coding. First, you need to add the Sapphire testnet to your <a href=\"https:\/\/docs.oasis.io\/general\/manage-tokens\/#metamask\">MetaMask wallet<\/a>. You can then request free TEST tokens from <a href=\"https:\/\/faucet.testnet.oasis.io\/\">https:\/\/faucet.testnet.oasis.io\/<\/a>. Remember to select <strong>Sapphire<\/strong> from the network dropdown and provide the wallet address created\u00a0above.<\/p>\n<h3>Example: Deploying a Confidential Smart\u00a0Contract<\/h3>\n<p>I will use a basic example here to demonstrate how this will all work. Once you have connected your Integrated Development Environment (IDE) with the Oasis MCP, start a fresh project. Let\u2019s use this\u00a0prompt:<\/p>\n<p><strong><em>Create a confidential smart contract on Sapphire with Hardhat. It should store a secret message that only the owner can set. Anyone can submit a guess, but the actual secret should never be visible on-chain.<\/em><\/strong><\/p>\n<p>Your chosen AI tool will immediately pull the documentation and perform the following steps seamlessly:<\/p>\n<p>Identify the correct Hardhat\u00a0config.Infer that the contract state on Sapphire is private by\u00a0default.Generate a working contract with a full project structure, including a deploy script, interaction examples, and\u00a0tests.<\/p>\n<p>Note that Claude will ask for permission before running commands. So, you might want to select \u201cdon\u2019t ask again\u201d if you prefer. <br \/> There will also be a\u00a0<strong>.env.example<\/strong> file generated in the process. You need to copy it to\u00a0<strong>.env<\/strong> and add your wallet\u2019s private\u00a0key.<\/p>\n<p>cp .env.example .env<\/p>\n<p>For those developers who are new to the decentralized setup, the private key can be found on your MetaMask wallet account with these steps: click the three dots next to the account name \u2192 account details \u2192 reveal private keys \u2192 enter password. <br \/> This private key will have to be added to the<strong>.env<\/strong> file as <strong>PRIVATE_KEY=0x\u2026<\/strong>, and then deployed:<br \/> bash<\/p>\n<p>npm run deploy:testnet<\/p>\n<p>When you see a contract address returned in your terminal, it confirms the successful deployment of a confidential smart contract live on the testnet, using just the prompt mentioned at the start of this\u00a0segment.<\/p>\n<p>You can further test the confidentiality of the contract when you try calling <strong>eth_getStorageAt<\/strong> on your contract at <a href=\"https:\/\/explorer.oasis.io\/testnet\/sapphire\">Oasis Explorer<\/a>.<\/p>\n<p>As Oasis enables verifiable privacy and confidential computation, this is the gateway to developing private applications. You can start exploring the possibilities at <a href=\"https:\/\/oasis.net\/\">https:\/\/oasis.net\/<\/a> and start vibe coding to build the next-gen dApps. With your AI coding tool connected to the docs, it will be the model doing all the\u00a0work.<\/p>\n<p>Sources referred: <a href=\"https:\/\/docs.oasis.io\/build\/tools\/llms\/\">https:\/\/docs.oasis.io\/build\/tools\/llms\/<\/a><br \/>Help needed? Ask the dev team: <a href=\"https:\/\/oasis.io\/discord\">https:\/\/oasis.io\/discord<\/a><\/p>\n<p><em>Originally published at <\/em><a href=\"https:\/\/dev.to\/dc600\/do-you-vibe-code-a-deai-primer-by-oasis-3h8j\"><em>https:\/\/dev.to<\/em><\/a><em> on March 18,\u00a02026.<\/em><\/p>\n<p><a href=\"https:\/\/medium.com\/coinmonks\/do-you-vibe-code-a-deai-primer-by-oasis-ca1e31898238\">Do You Vibe Code? A DeAI Primer By Oasis<\/a> was originally published in <a href=\"https:\/\/medium.com\/coinmonks\">Coinmonks<\/a> on Medium, where people are continuing the conversation by highlighting and responding to this story.<\/p>","protected":false},"excerpt":{"rendered":"<p>AI integration is moving fast, and the accessibility to develop AI is becoming easier by the day. The decentralized AI (DeAI) space has also picked up momentum as the new-gen web3 solutions all come with an AI edge. So, if you are a web3 developer, it is no longer imperative that you be a Solidity [&hellip;]<\/p>\n","protected":false},"author":0,"featured_media":142973,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-142972","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-interesting"],"_links":{"self":[{"href":"https:\/\/mycryptomania.com\/index.php?rest_route=\/wp\/v2\/posts\/142972"}],"collection":[{"href":"https:\/\/mycryptomania.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mycryptomania.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/mycryptomania.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=142972"}],"version-history":[{"count":0,"href":"https:\/\/mycryptomania.com\/index.php?rest_route=\/wp\/v2\/posts\/142972\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/mycryptomania.com\/index.php?rest_route=\/wp\/v2\/media\/142973"}],"wp:attachment":[{"href":"https:\/\/mycryptomania.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=142972"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mycryptomania.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=142972"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mycryptomania.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=142972"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}