All Tutorials
AI Agents
Beginner
10 min

Getting Started with AI Agents

Create your Open Source Cloud account, connect Claude Code via MCP, and deploy your first MySQL database — all using natural language.

What You'll Learn

Create an OSC account and team
Install and configure Claude Code CLI
Connect AI agents to OSC via MCP
Deploy cloud services using natural language

Prerequisites

  • Node.js 18+ installed
  • A terminal or command prompt
  • An Anthropic API key (for Claude Code)

Step-by-Step Guide

1

Create an OSC Account

First, create your Open Source Cloud account. Navigate to the OSC console:

Enter your email address and click continue. Check your inbox for a verification code, then enter the code to verify your account.

Tip: The verification code will arrive within a few seconds. Check your spam folder if you don't see it.

2

Create a Team

After verifying your email, you'll be prompted to create a team. Teams are how OSC organizes your services and resources.

Enter a team name (e.g., your company name or project name) and click the Create Team button.

Tip: Your free account includes 300 usage tokens to get started. You can invite team members later.

3

Install Claude Code

Claude Code is Anthropic's official CLI tool that brings AI assistance directly to your terminal. Install it using npm:

npm install -g @anthropic-ai/claude-code

After installation, verify it works by running claude --version

4

Add OSC as MCP Server

Connect Claude Code to Open Source Cloud by adding OSC as an MCP (Model Context Protocol) server. Run this command:

claude mcp add --transport http osc https://ai.svc.prod.osaas.io/mcp

This registers OSC as an available tool server that Claude can use to manage cloud services on your behalf.

5

Start Claude Code

Launch Claude Code in your terminal:

claude

This starts an interactive session where you can chat with Claude and use the connected MCP servers.

6

Connect to OSC

Inside Claude Code, connect to the OSC MCP server:

/mcp osc

Claude will now have access to all OSC tools and can help you manage open source services.

7

Authenticate Your Agent

Ask Claude to authenticate with your OSC account:

> Authenticate with Open Source Cloud

A browser window will open where you can log in with the account you created earlier and authorize Claude to access OSC on your behalf.

8

Create a MySQL Database

Now you're ready to create your first service! Ask Claude in natural language:

> Create a MySQL database for me

Claude will use the OSC MCP tools to provision a MySQL instance. Once complete, you'll receive connection details including host, port, username, and password.

Note: Save your database credentials securely. You'll need them to connect from your applications.

Congratulations!

You've successfully connected Claude Code to Open Source Cloud and created your first database. You can now use natural language to deploy any of the 500+ services available on OSC.

What's Next?

Explore Services

Ask Claude to list available services or deploy Redis, PostgreSQL, MinIO, and more.

> What services can I deploy?

Check Your Resources

View and manage your running services through the OSC console or via Claude.

Open Console

Need More Help?

Check out our documentation or explore more tutorials to get the most out of Open Source Cloud.