SRE CLIGetting Started

Getting Started

Learn how to access and use the SRE CLI with AI assistance.

Opening the SRE CLI

  1. Look for the SRE CLI button in the bottom-right corner of any page
  2. Click the button to open the terminal

Selecting a Cluster

To use the SRE CLI with AI, you first need to select a specific cluster to work with.

Select cluster for SRE CLI
Select a cluster and click Connect to start

If you haven’t added a cluster yet, go to Add Cluster first. If you already have a cluster, just click the Connect button next to it.

Note: The first connection may take some time, as a pod is being created to read your Kubernetes cluster.

Authenticating with AI

After connecting to a cluster, you need to authenticate with an AI provider.

AI authentication options
Choose your AI provider to authenticate

Available AI providers:

ProviderDescription
DashScope OAuth (Qwen)Alibaba’s Qwen AI - A free option
Google Gemini API KeyGoogle’s Gemini AI
OpenAI API KeyChatGPT / GPT-4
OpenRouter API KeyAccess multiple AI models
DeepSeek API KeyDeepSeek AI
Anthropic Claude API KeyClaude AI

Tip: For free usage or testing, we recommend DashScope (Qwen) - it works very well and doesn’t require payment.

Your First Query

Once connected and authenticated, you’ll see a prompt. Try asking:

“What is the status of my cluster?”

The AI will analyze your cluster and provide a summary of:

  • Node health
  • Running pods
  • Any issues detected

Asking Questions

You can ask questions in natural language. Some examples:

Checking resources:

“How many pods are running in production?”

“Show me all deployments”

“What services are exposed?”

Troubleshooting:

“Why is pod xyz failing?”

“Show me the logs from nginx”

“What errors happened in the last hour?”

Security:

“Run a vulnerability scan”

“Check compliance status”

“Who has admin access?”

Tips for Better Results

Be Specific

Instead of:

“Show me pods”

Try:

“Show me pods in the production namespace that are not running”

Ask Follow-up Questions

The AI remembers the conversation context:

“Show me failing pods”

AI shows 3 failing pods

“Show me the logs from the first one”

AI knows which pod you mean

Use Natural Language

You don’t need special commands. Just describe what you want:

“I need to find out why the api service is slow”

Switching Clusters

To work with a different cluster:

  1. Close the current connection (click Disconnect or type exit)
  2. Select a different cluster from the dropdown
  3. Click Connect

Closing the Terminal

  • Click the X button to close
  • Or type exit in the terminal

Your session is preserved - the pod stays active for a while so reconnecting is fast.

Troubleshooting

Connection Takes Too Long

The first connection to a cluster takes some time because a pod needs to be created. Subsequent connections are faster.

”Permission Denied” Error

Make sure your user has the AI permission enabled. Contact your administrator.

AI Not Responding

  • Check your internet connection
  • Try disconnecting and reconnecting
  • If using a custom AI provider, verify your API key is valid

Next Steps