<!doctype html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <title>Onboard your agent to Akash Network</title>
    <link rel="icon" href="/favicon.ico" />
    <style>
  :root { color-scheme: light dark; }
  body {
    margin: 0;
    padding: 3rem 1.25rem 5rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: #fff;
  }
  main {
    max-width: 44rem;
    margin: 0 auto;
  }
  h1, h2, h3, h4 { line-height: 1.25; margin-top: 2.25rem; }
  h1 { font-size: 2rem; margin-top: 0; }
  h2 { font-size: 1.375rem; }
  h3 { font-size: 1.125rem; }
  p, ul, ol, pre, blockquote { margin: 1rem 0; }
  a { color: #ff424c; }
  a:hover { text-decoration: underline; }
  code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    background: rgba(0, 0, 0, 0.06);
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.9em;
  }
  pre {
    background: #0f172a;
    color: #e2e8f0;
    padding: 1rem 1.125rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    font-size: 0.875rem;
  }
  pre code { background: transparent; padding: 0; color: inherit; }
  blockquote {
    border-left: 3px solid #ff424c;
    padding: 0.25rem 0 0.25rem 1rem;
    color: #444;
    background: rgba(255, 66, 76, 0.05);
  }
  hr { border: 0; border-top: 1px solid #e5e5e5; margin: 2rem 0; }
  @media (prefers-color-scheme: dark) {
    body { color: #e5e5e5; background: #0a0a0a; }
    code { background: rgba(255, 255, 255, 0.08); }
    blockquote { color: #bbb; background: rgba(255, 66, 76, 0.08); }
    hr { border-top-color: #262626; }
  }
</style>
  </head>
  <body>
    <main><h1>Set up Akash Network for your AI coding agent</h1>
<p>Use this playbook to prepare the current agent to deploy workloads on Akash Network. Install the CLI, connect a credential, add guidance, and register MCP once. Link individual deployments later, when a task requires one.</p>
<h2>How to run</h2>
<p>Run section 1 once per machine. Run sections 2 through 4 once per coding agent. Section 5 is reference material to read, not steps to execute.</p>
<p>Perform actions yourself when terminal or file access is available. Global or user-scoped installation is the default. Pause only for user authentication, approval, or UI actions you cannot perform. Do not merely return commands for the user to copy.</p>
<p>Akash Network deployments spend real money. Default to the read-only configuration in section 4 unless the user explicitly asks for write access.</p>
<h2>1. Install the akt CLI</h2>
<p><code>akt</code> is a single binary covering chain queries, deployment workflows, provider operations, Console integration, and the MCP server. It replaces the older <code>akash</code> and <code>provider-services</code> binaries.</p>
<p>Check for an existing installation:</p>
<pre><code class="language-sh">akt version
</code></pre>
<p>If <code>akt</code> is missing, fetch the current installation instructions and follow them for this platform:</p>
<pre><code class="language-text">https://akash.network/docs/developers/deployment/akt/installation
</code></pre>
<p>Do not guess an install command or a release URL. Read the page, install, then verify with <code>akt version</code> before continuing.</p>
<h2>2. Connect an Akash Console API key</h2>
<p>This is the recommended credential. It uses a Console-managed wallet, bills in US dollars by card, and requires no local keys, seed phrase, or token purchase.</p>
<p>Create a context for it:</p>
<pre><code class="language-sh">akt context create console --network mainnet --auth-method console-api --set-current
</code></pre>
<p><strong>Pause here.</strong> The key can only be created in a browser. Ask the user to:</p>
<ol>
<li>Open <code>https://console.akash.network</code> and sign in.</li>
<li>Go to Settings, then API Keys.</li>
<li>Create a key and paste it back.</li>
</ol>
<p>Then store and validate it:</p>
<pre><code class="language-sh">akt console login
</code></pre>
<p>In a non-interactive shell, pass it positionally instead: <code>akt console login &lt;key&gt;</code>. The key is written to <code>contexts/&lt;name&gt;/console-api-key</code> with mode 0600, never to <code>config.yaml</code>, and never printed.</p>
<p>Verify:</p>
<pre><code class="language-sh">akt console whoami
</code></pre>
<p>If the user prefers self-custody, create a keyring context instead and fund it with AKT for deposits and gas. The equivalent web interface is Console Air at <code>https://air.akash.network</code>, where the user connects their own wallet and signs each transaction; it issues no API key, so an agent cannot act through it. Do not set up both rails in the same session — pick one and confirm it works.</p>
<h2>3. Add Akash guidance</h2>
<p>The Akash skill bundle teaches the agent to write SDL and run the deployment lifecycle. It installs three skills: <code>akash-network:akash</code> for deploying workloads, <code>akash-network:akash-provider</code> for running a provider, and <code>akash-network:akash-node</code> for running a node or validator.</p>
<h3>Claude Code</h3>
<pre><code class="language-sh">/plugin marketplace add akash-network/akash-skill
/plugin install akash-network@akash-network
</code></pre>
<p>Confirm with <code>/plugin</code> that <code>akash-network</code> is listed. Reload only if the skills are not discoverable.</p>
<h3>Codex CLI</h3>
<p>Codex reads the repository&#39;s <code>.codex-plugin/plugin.json</code> manifest and loads from <code>skills/</code>. Add <code>akash-network/akash-skill</code> as a local or marketplace Codex plugin.</p>
<h3>OpenCode and other agents</h3>
<p>Link the skills into the agent&#39;s global skills directory:</p>
<pre><code class="language-sh">git clone https://github.com/akash-network/akash-skill
mkdir -p ~/.agents/skills
ln -s &quot;$(pwd)/akash-skill/skills/akash&quot; ~/.agents/skills/akash
</code></pre>
<p>Add <code>akash-provider</code> and <code>akash-node</code> the same way only if the user runs infrastructure.</p>
<h2>4. Connect the Akash MCP server</h2>
<p><code>akt mcp</code> runs over stdio. The client launches it; there is no remote endpoint, no OAuth, and no URL to configure.</p>
<h3>Claude Code</h3>
<pre><code class="language-sh">claude mcp add akash -- akt mcp
</code></pre>
<h3>Clients configured by JSON</h3>
<p>Inspect the existing config and merge this entry without replacing unrelated settings:</p>
<pre><code class="language-json">{
  &quot;mcpServers&quot;: {
    &quot;akash&quot;: {
      &quot;command&quot;: &quot;akt&quot;,
      &quot;args&quot;: [&quot;mcp&quot;]
    }
  }
}
</code></pre>
<h3>Write access</h3>
<p>The server is read-only by default. Read tools are annotated read-only; write tools are marked destructive.</p>
<p>Adding <code>--enable-writes</code> grants the client the ability to close deployments, create and close leases, submit manifests, and spend Console credits. On the Console rail that means spending the user&#39;s money; on the chain rail it means broadcasting signed transactions.</p>
<p>Do not add <code>--enable-writes</code> unless the user asks for it in this session. If they do, say plainly what it grants before making the change.</p>
<p>Verify the server loaded by listing tools in the client and calling one read-only tool.</p>
<h2>5. What to know before deploying</h2>
<ul>
<li><strong>A deployment is an auction, not a push.</strong> Publish the workload, wait for provider bids, accept one, and the manifest goes to that provider. Nothing runs until a lease exists.</li>
<li><strong>Bids take time.</strong> They typically arrive 30 to 60 seconds after the deployment is created. Poll about every 3 seconds, then back off rather than retrying tighter.</li>
<li><strong>Escrow drains while the lease runs.</strong> The minimum deposit is $0.50. A deployment left running keeps spending. Top it up, or close it to reclaim the unspent balance.</li>
<li><strong>Close what you open.</strong> An abandoned deployment is a live bill, not a stopped process.</li>
<li><strong>Images need explicit version tags.</strong> <code>latest</code> is not acceptable in a deployment the user will rely on.</li>
<li><strong>Confidential compute images must be public.</strong> A service using <code>tee: cpu</code> or <code>tee: cpu-gpu</code> cannot pull from a private registry; credentials are ignored and the deployment fails.</li>
<li><strong>Author SDL locally first.</strong> <code>akt sdl scaffolds</code> lists the built-in templates and validates without a context, a key, or a network connection.</li>
</ul>
<h2>Verification</h2>
<p>Before reporting success, prove the setup end to end:</p>
<ol>
<li>Scaffold a minimal web SDL with <code>akt sdl</code>.</li>
<li><code>akt deploy deploy.yaml --deposit 5</code></li>
<li>Confirm the lease is active and the returned URI responds.</li>
<li><code>akt close &lt;dseq&gt;</code></li>
<li>Confirm the deployment shows closed and the escrow balance returned.</li>
</ol>
<p>If the user does not want to spend on a test deploy, stop after step 1 and say so in the report.</p>
<h2>Completion</h2>
<p>Report only verified state:</p>
<pre><code class="language-text">Akash Network agent setup is ready
CLI: akt &lt;version&gt;
Credential: &lt;console-api|keyring&gt;, verified as &lt;account or console identity&gt;
Guidance: &lt;skill bundle|skipped&gt;, &lt;global|project&gt; scope
MCP: &lt;connected|skipped&gt;, &lt;read-only|writes enabled&gt;
Test deploy: &lt;dseq closed and escrow returned|skipped at user request&gt;
</code></pre>
<p>Sources:</p>
<ul>
<li><a href="https://akash.network/docs/developers/deployment/akt/">https://akash.network/docs/developers/deployment/akt/</a></li>
<li><a href="https://akash.network/docs/developers/deployment/akt/console/">https://akash.network/docs/developers/deployment/akt/console/</a></li>
<li><a href="https://akash.network/docs/developers/deployment/akt/mcp/">https://akash.network/docs/developers/deployment/akt/mcp/</a></li>
<li><a href="https://akash.network/docs/getting-started/ai-agents/">https://akash.network/docs/getting-started/ai-agents/</a></li>
<li><a href="https://akash.network/docs/api-documentation/console-api/getting-started/">https://akash.network/docs/api-documentation/console-api/getting-started/</a></li>
</ul>
</main>
  </body>
</html>
