Grok CLI

Coding Agents Cloud Server Made by xAI

A coding agent for the terminal from xAI

Install

Plan

s-2vcpu-4gbSmallest that fits

2 vCPU · 4 GB RAM · 40 GB NVMe

฿419/mo

Settings

Timezone

After you press Install

  1. Check the price, accept the terms

    In the console

  2. Press Create server and install

    The server is created and billing starts

  3. Get in

    By web terminal or SSH

Terms and costs

  • You read and accept the terms of xAI before you confirm.
  • You sign in with xAI and pay xAI for its use.
  • XVer bills only the server, not app accounts or their usage.

Read the terms of xAI (opens in a new tab)

Full statement

Grok CLI belongs to xAI. XVer is not its developer or agent, and xAI does not endorse this service. You use your own account and pay xAI yourself. Names and logos are trademarks of their owners.

How to use

Web terminal

Opens in the browser.

  1. Open the server in my.xver.cloud

  2. Press Web terminal

    No server password

  3. Type the command

    grok
  4. Sign in

    With your own xAI account

The owner and members who can manage the project can open it.

SSH

From a terminal on your computer, with a password or a key.

  1. Connect over SSH

    Use the password or key from the server page

    ssh xver@SERVER_IP
  2. Open tmux

    Work keeps running if SSH drops

    tmux new -s work
  3. Sign in with a short code

    Open the link on your computer and enter the code

    grok login --device-auth
  4. Run Grok

    In your project folder

    grok

Replace SERVER_IP with your server’s IP

1 copy the SSH command 2 show the password (sample data, console in Thai)

Web console

For when the web terminal or SSH does not open. Needs the server’s password.

  1. Open the server in my.xver.cloud

    The user name and password are under the Access tab

  2. Press the arrow next to Web terminal and choose Web console

  3. Type the user name and password

  4. Type the command

    grok
  5. Sign in

    With your own xAI account

A server with only an SSH key has no password: use SSH.

Images

  • 1 copy the SSH command 2 show the password (sample data, console in Thai)

On this page
  1. Why on a server
  2. What you need
  3. How to install
  4. What is on the server
  5. First use
  6. Who can get in
  7. Change passwords and keys
  8. Remove the app
  9. Cost
  10. Security
  11. Frequently asked questions

Grok CLI (called Grok Build in xAI's docs) is xAI's coding agent for the terminal. It reads your project, edits files and runs commands on the server when you ask it to.

Why on a server#

You want On a Cloud Server
Work that goes on after you close your laptop tmux keeps it running; look back later
A space apart from your own computer The agent sees only the files on this server
Work from anywhere Open the web terminal in a browser, or use SSH

What you need#

Item Details
Account A Grok account to sign in with, or an xAI API key from console.x.ai
Smallest size 2 vCPU, RAM 4 GB, NVMe disk 40 GB, Bandwidth 4 TB
On your computer A browser; an SSH client if you use SSH

How to install#

  1. Press Install Grok CLI on this page
  2. Sign in to XVer and check the plan and price
  3. Choose how to get into the server: password or SSH key
  4. Read xAI's terms and tick to accept them
  5. Press Create server and install. The server is created and billing starts after this step

When it is installed, press Open server terminal or copy the SSH command.

What is on the server#

Item Details
System Ubuntu 26.04, user xver with sudo
Command grok ready in the terminal
Ports open to the internet None added; this app has no web page
Running in the background Nothing; Grok CLI runs only when you start it

First use#

Press Web terminal on the server page; it does not need the server's password. Or connect over SSH from your computer.

On your computer
ssh xver@SERVER_IP

Sign in without a browser on the server#

The first time you run grok on its own, it tries to open a browser, which the server does not have. Sign in with a short code first.

  1. Run grok login --device-auth
  2. Open the link it shows in a browser on your computer and sign in to your Grok account
  3. Enter the code shown in the terminal and wait until Grok confirms the sign-in
On the server
grok login --device-auth

To use an API key instead, set XAI_API_KEY before you run Grok.

On the server
export XAI_API_KEY="xai-..."
grok

If you have already signed in with an account, Grok uses it before the API key. Run grok logout to switch to the key.

Start working#

Open tmux first so work does not stop when the connection drops, then go to your project folder.

On the server
tmux new -s work
mkdir -p ~/my-project
cd ~/my-project
grok

Type a request and press Enter. Press Ctrl + b then d to leave tmux without stopping the work; come back with tmux attach -t work.

Who can get in#

This app has no web page.

Way Who
Web terminal The owner and project members who can manage it; no server password needed
SSH Anyone with the server's password or key
Web console Anyone with the server's password

Change passwords and keys#

Grok CLI has no password of its own. What to look after is the server's password and the account you use with Grok CLI.

What How to change it
Server password On the server page, Access tab, press Reset password. The old one stops working at once
Grok account or xAI API key Run grok logout, then grok login --device-auth to sign in to another account. If you use an API key, set XAI_API_KEY to the new key, then revoke the old one at console.x.ai

Remove the app#

  1. Run grok logout, or revoke the API key you used on this server in your provider account
  2. Open the server page, Apps tab
  3. Press Uninstall on Grok CLI, check what will be removed, then confirm

The server stays and is billed as usual. If you no longer need it, delete the server; its data is gone for good.

Cost#

XVer does not charge for the app. You pay XVer for the server and pay xAI directly for Grok or the API. A server that is off is still billed. Delete it to stop billing; its data is gone for good.

PlanNVMe diskBandwidthPer hourPer month
2 vCPU · 4 GB40 GB4 TB฿0.70/hr฿419/mo
4 vCPU · 8 GB80 GB10 TB฿1.37/hr฿819/mo

The price you pay is shown before you confirm

Compare every size on Cloud Server pricing.

Security#

Mode What Grok may do
Ask (default) Read files and run read-only commands on its own; ask before editing files or running anything else
Auto Go ahead with work that passes a safety check; ask about the rest
Always-approve Run tools without asking; only for automation you trust
  • Press Shift + Tab or run /settings to change the mode
  • Work in a project folder under Git, not your home folder
  • Read commands before you approve them, and do not turn on Always-approve unless you need it
  • The xver user can use sudo without a password. If you let Grok CLI run commands, it can change the whole server.

Frequently asked questions#

Is XVer connected with xAI?

No. XVer is not the developer, an agent or a partner of xAI and is not endorsed by it. You accept the terms, use your account and pay xAI yourself.

Sign-in fails, or I want another account. What now?

Run grok logout to clear the old sign-in, then sign in again with grok login --device-auth.

Where do I see the settings in use?

Run /status in Grok to see the sign-in method and model. Change the model with /model.

฿419/mos-2vcpu-4gb

Installs open soon

Related posts

See all apps