|
| 1 | +--- |
| 2 | +title: Claude Code |
| 3 | +order: 1 |
| 4 | +--- |
| 5 | + |
| 6 | +# Claude Code Integration Guide |
| 7 | + |
| 8 | +## Overview |
| 9 | + |
| 10 | +Integrate CreateOS with Claude Code using the MCP (Model Context Protocol) to enable AI-powered deployment workflows directly from your command line. |
| 11 | + |
| 12 | +--- |
| 13 | + |
| 14 | +## Prerequisites |
| 15 | + |
| 16 | +- Claude Code installed |
| 17 | +- CreateOS account with API key access |
| 18 | +- Command line access (PowerShell, Terminal, or Command Prompt) |
| 19 | + |
| 20 | +--- |
| 21 | + |
| 22 | +## Setup Instructions |
| 23 | + |
| 24 | +### Step 1: Verify Claude Code Installation |
| 25 | + |
| 26 | +1. Open your terminal or command prompt |
| 27 | +2. Run the following command to check if Claude Code is installed: |
| 28 | +```powershell |
| 29 | +claude --version |
| 30 | +``` |
| 31 | + |
| 32 | +If not installed, install Claude Code according to its <a href="https://code.claude.com/docs/en/mcp" target="_blank">official installation instructions</a>. |
| 33 | + |
| 34 | +### Step 2: Authenticate Claude Code |
| 35 | + |
| 36 | +1. Log in to Claude Code by running: |
| 37 | +```powershell |
| 38 | +claude auth login |
| 39 | +``` |
| 40 | + |
| 41 | +2. Verify login: |
| 42 | +```powershell |
| 43 | +claude auth status |
| 44 | +``` |
| 45 | + |
| 46 | +Ensure you're successfully authenticated before proceeding. |
| 47 | + |
| 48 | +### Step 3: Configure CreateOS MCP Connection |
| 49 | + |
| 50 | +Run the following command, replacing `"CREATEOS_API_KEY"` with your actual CreateOS API key: |
| 51 | +```powershell |
| 52 | +claude mcp add createos-mcp --transport http https://api-createos.nodeops.network/mcp --header "X-API-Key: CREATEOS_API_KEY" |
| 53 | +``` |
| 54 | + |
| 55 | +**Getting Your API Key:** |
| 56 | + |
| 57 | +1. Log in to CreateOS |
| 58 | +2. Navigate to **Profile Settings** |
| 59 | +3. Copy your API key from the **API Key** section |
| 60 | + |
| 61 | +<br/> |
| 62 | + |
| 63 | +<a href="https://ik.imagekit.io/nodeops/No%20Sound/API%20Key%20Retrieval.mp4" target="_blank">Watch Tutorial →</a> |
| 64 | + |
| 65 | +<MDXVideo |
| 66 | + src="https://ik.imagekit.io/nodeops/No%20Sound/API%20Key%20Retrieval.mp4" |
| 67 | + caption="API key retrieval tutorial" |
| 68 | +/> |
| 69 | + |
| 70 | +**Security Note**: Keep your API key confidential and never share it publicly. |
| 71 | + |
| 72 | +### Step 4: Apply Configuration |
| 73 | + |
| 74 | +1. After adding the MCP server, restart Claude Code |
| 75 | +2. Close any active Claude sessions and reopen |
| 76 | + |
| 77 | +### Step 5: Verify Connection |
| 78 | + |
| 79 | +Run the following command to verify the MCP connection: |
| 80 | +```powershell |
| 81 | +claude mcp list |
| 82 | +``` |
| 83 | + |
| 84 | +**In Claude Desktop**, if you've already initiated the `claude` command, use: |
| 85 | +``` |
| 86 | +/mcp |
| 87 | +``` |
| 88 | + |
| 89 | +**Expected Output:** |
| 90 | +``` |
| 91 | +✓ createos-mcp connected |
| 92 | +``` |
| 93 | + |
| 94 | +--- |
| 95 | + |
| 96 | +## Demo Video |
| 97 | + |
| 98 | +Vibecode and deploy through CreateOS MCP: **<a href="https://ik.imagekit.io/nodeops/No%20Sound/Claude%20Code%20MCP%20Demo.mp4" target="_blank">Demo</a>** |
| 99 | +<MDXVideo |
| 100 | + src="https://ik.imagekit.io/nodeops/No%20Sound/Claude%20Code%20MCP%20Demo.mp4" |
| 101 | + caption="Claude Code Vibecode Demo" |
| 102 | +/> |
| 103 | +--- |
| 104 | + |
| 105 | +## Troubleshooting |
| 106 | + |
| 107 | +If the connection fails, confirm: |
| 108 | + |
| 109 | +- Claude Code is properly installed and authenticated |
| 110 | +- API key is valid and has proper permissions |
| 111 | +- Command syntax is correct (no extra spaces or characters) |
| 112 | +- Claude Code has been fully restarted after adding the MCP server |
| 113 | + |
| 114 | +--- |
| 115 | + |
| 116 | +## Next Steps |
| 117 | + |
| 118 | +Once connected, you can: |
| 119 | + |
| 120 | +- Use AI prompts to deploy services directly from the command line |
| 121 | +- Access CreateOS infrastructure through Claude Code |
| 122 | +- Manage deployments with natural language commands |
0 commit comments