{"id":16645,"date":"2026-07-22T08:12:19","date_gmt":"2026-07-22T12:12:19","guid":{"rendered":"https:\/\/wp.glbgpt.com\/?p=16645"},"modified":"2026-07-22T08:56:45","modified_gmt":"2026-07-22T12:56:45","slug":"how-to-use-globalgpt-cli-in-claude-code","status":"publish","type":"post","link":"https:\/\/wp.glbgpt.com\/id\/hub\/how-to-use-globalgpt-cli-in-claude-code","title":{"rendered":"Cara Menggunakan CLI GlobalGPT dalam Kode Claude"},"content":{"rendered":"<blockquote style=\"margin:24px 0;padding:18px 22px;border-left:4px solid #1570b8;border-radius:0 12px 12px 0;background:#edf8ff;box-sizing:border-box;\"><p style=\"margin:0;color:#142533;font-size:17px;line-height:1.72;\"><strong>Jawaban singkat:<\/strong> Install Node.js 18 or later, run <code>npm i -g @glbgpt\/cli<\/code>, authorize with <code>glbgpt login<\/code>, then run <code>glbgpt skill install<\/code>. Restart Claude Code in your project directory and ask it to use GlobalGPT for an image, video, or bulk text task. Use <code>--estimate<\/code> before media generation so you can review the credit cost first.<\/p><\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\">GlobalGPT CLI brings chat, image generation, video generation, and non-interactive AI tasks into the terminal. When you connect it to Claude Code, Claude can choose the right GlobalGPT command, work with files in your project, estimate media costs before generation, and run repeatable content workflows without requiring you to build a custom API integration.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Panduan ini menunjukkan <strong>how to use GlobalGPT CLI in Claude Code<\/strong> from start to finish: check the prerequisites, install GlobalGPT CLI, sign in with your GlobalGPT account, install the bundled Agent Skill, validate the connection, generate media safely, automate structured tasks, and fix the DNS and browser-authorization problems that can interrupt setup on Windows.<\/p>\n\n\n\n<div class=\"wp-block-group is-layout-constrained wp-block-group-is-layout-constrained\">\n<figure class=\"wp-block-image size-large\"><img alt=\"\" fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/wp.glbgpt.com\/wp-content\/uploads\/2026\/03\/image-831-1024x640.png\" class=\"wp-image-15877\" srcset=\"https:\/\/wp.glbgpt.com\/wp-content\/uploads\/2026\/03\/image-831-1024x640.png 1024w, https:\/\/wp.glbgpt.com\/wp-content\/uploads\/2026\/03\/image-831-300x187.png 300w, https:\/\/wp.glbgpt.com\/wp-content\/uploads\/2026\/03\/image-831-768x480.png 768w, https:\/\/wp.glbgpt.com\/wp-content\/uploads\/2026\/03\/image-831-1536x960.png 1536w, https:\/\/wp.glbgpt.com\/wp-content\/uploads\/2026\/03\/image-831-2048x1279.png 2048w, https:\/\/wp.glbgpt.com\/wp-content\/uploads\/2026\/03\/image-831-18x12.png 18w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<div class=\"wp-block-buttons is-content-justification-center is-layout-flex wp-container-core-buttons-is-layout-3e41869c wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link has-black-color has-luminous-vivid-amber-background-color has-text-color has-background has-link-color wp-element-button\">Coba Lebih dari 100 Model Terbaik di GlobalGPT<\/a><\/div>\n<\/div>\n<\/div>\n\n\n\n<nav aria-labelledby=\"toc-title\" style=\"margin:34px 0 44px;padding:30px 34px;border:1px solid #d6e1eb;border-radius:24px;background:#f4f7fb;box-sizing:border-box;\"><h2 id=\"toc-title\" style=\"margin:0 0 20px;color:#0e507f;font-size:32px;line-height:1.2;font-weight:700;\">Daftar Isi<\/h2><ol style=\"margin:0;padding-left:28px;color:#142533;font-size:17px;line-height:1.72;\"><li style=\"margin:7px 0;\"><a href=\"#what-is-globalgpt-cli-and-why-use-it-with-claude-code\" style=\"color:#0e5a98;text-decoration:underline;text-underline-offset:3px;\">What Is GlobalGPT CLI, and Why Use It with Claude Code?<\/a><\/li><li style=\"margin:7px 0;\"><a href=\"#prerequisites-before-you-start\" style=\"color:#0e5a98;text-decoration:underline;text-underline-offset:3px;\">Prerequisites Before You Start<\/a><\/li><li style=\"margin:7px 0;\"><a href=\"#step-1-install-globalgpt-cli\" style=\"color:#0e5a98;text-decoration:underline;text-underline-offset:3px;\">Step 1: Install GlobalGPT CLI<\/a><\/li><li style=\"margin:7px 0;\"><a href=\"#step-2-sign-in-with-your-globalgpt-account\" style=\"color:#0e5a98;text-decoration:underline;text-underline-offset:3px;\">Step 2: Sign In with Your GlobalGPT Account<\/a><\/li><li style=\"margin:7px 0;\"><a href=\"#step-3-test-globalgpt-cli-before-connecting-claude-code\" style=\"color:#0e5a98;text-decoration:underline;text-underline-offset:3px;\">Step 3: Test GlobalGPT CLI Before Connecting Claude Code<\/a><\/li><li style=\"margin:7px 0;\"><a href=\"#step-4-install-the-globalgpt-agent-skill-for-claude-code\" style=\"color:#0e5a98;text-decoration:underline;text-underline-offset:3px;\">Step 4: Install the GlobalGPT Agent Skill for Claude Code<\/a><\/li><li style=\"margin:7px 0;\"><a href=\"#step-5-verify-globalgpt-cli-inside-claude-code-without-spending-credits\" style=\"color:#0e5a98;text-decoration:underline;text-underline-offset:3px;\">Step 5: Verify GlobalGPT CLI Inside Claude Code Without Spending Credits<\/a><\/li><li style=\"margin:7px 0;\"><a href=\"#step-6-generate-an-image-from-claude-code\" style=\"color:#0e5a98;text-decoration:underline;text-underline-offset:3px;\">Step 6: Generate an Image from Claude Code<\/a><\/li><li style=\"margin:7px 0;\"><a href=\"#step-7-generate-a-video-from-claude-code\" style=\"color:#0e5a98;text-decoration:underline;text-underline-offset:3px;\">Step 7: Generate a Video from Claude Code<\/a><\/li><li style=\"margin:7px 0;\"><a href=\"#step-8-automate-bulk-text-work-with-glbgpt-exec\" style=\"color:#0e5a98;text-decoration:underline;text-underline-offset:3px;\">Step 8: Automate Bulk Text Work with <code>glbgpt exec<\/code><\/a><\/li><li style=\"margin:7px 0;\"><a href=\"#optional-connect-globalgpt-as-an-mcp-server\" style=\"color:#0e5a98;text-decoration:underline;text-underline-offset:3px;\">Optional: Connect GlobalGPT as an MCP Server<\/a><\/li><li style=\"margin:7px 0;\"><a href=\"#troubleshooting-globalgpt-cli-on-windows\" style=\"color:#0e5a98;text-decoration:underline;text-underline-offset:3px;\">Troubleshooting GlobalGPT CLI on Windows<\/a><\/li><li style=\"margin:7px 0;\"><a href=\"#how-to-measure-time-and-token-use-for-each-claude-code-task\" style=\"color:#0e5a98;text-decoration:underline;text-underline-offset:3px;\">How to Measure Time and Token Use for Each Claude Code Task<\/a><\/li><li style=\"margin:7px 0;\"><a href=\"#frequently-asked-questions\" style=\"color:#0e5a98;text-decoration:underline;text-underline-offset:3px;\">Pertanyaan yang Sering Diajukan<\/a><\/li><li style=\"margin:7px 0;\"><a href=\"#key-takeaways\" style=\"color:#0e5a98;text-decoration:underline;text-underline-offset:3px;\">Poin Penting<\/a><\/li><\/ol><\/nav>\n\n\n\n<h2 id=\"what-is-globalgpt-cli-and-why-use-it-with-claude-code\" class=\"wp-block-heading\">What Is GlobalGPT CLI, and Why Use It with Claude Code?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">GlobalGPT CLI is the official command-line client for accessing GlobalGPT chat models, image generators, video generators, account information, and task history. The stable npm package exposes both <code>glbgpt<\/code> dan <code>globalgpt<\/code> commands and includes an <code>exec<\/code> interface for scripts and external agents.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Claude Code supplies the reasoning and project context. GlobalGPT CLI supplies the model and media actions. The bundled <code>globalgpt-generate<\/code> Agent Skill teaches Claude Code when and how to call the CLI, including how to estimate media costs, select from the live model catalog, attach reference images, wait for tasks, and avoid accidental duplicate charges.<\/p>\n\n\n\n<h3 id=\"the-three-ways-to-connect-globalgpt-and-claude-code\" class=\"wp-block-heading\">The Three Ways to Connect GlobalGPT and Claude Code<\/h3>\n\n\n\n<div style=\"max-width:100%;margin:22px 0 30px;overflow-x:auto;-webkit-overflow-scrolling:touch;\"><table style=\"width:100%;min-width:760px;margin:0;border-collapse:collapse;border:1px solid #cfdae3;color:#142533;font-size:15px;line-height:1.55;\"><thead><tr><th style=\"padding:13px 14px;border:1px solid #cfdae3;background:#eaf2f8;color:#143d5b;text-align:left;vertical-align:top;font-weight:700;\">Integrasi<\/th><th style=\"padding:13px 14px;border:1px solid #cfdae3;background:#eaf2f8;color:#143d5b;text-align:left;vertical-align:top;font-weight:700;\">Terbaik untuk<\/th><th style=\"padding:13px 14px;border:1px solid #cfdae3;background:#eaf2f8;color:#143d5b;text-align:left;vertical-align:top;font-weight:700;\">Pertimbangan utama<\/th><\/tr><\/thead><tbody><tr><td style=\"padding:13px 14px;border:1px solid #cfdae3;text-align:left;vertical-align:top;\">Agent Skill + CLI<\/td><td style=\"padding:13px 14px;border:1px solid #cfdae3;text-align:left;vertical-align:top;\">Claude Code users who want natural-language image, video, and bulk text workflows<\/td><td style=\"padding:13px 14px;border:1px solid #cfdae3;text-align:left;vertical-align:top;\">Claude Code needs permission to run shell commands<\/td><\/tr><tr><td style=\"padding:13px 14px;border:1px solid #cfdae3;text-align:left;vertical-align:top;\">Direct CLI commands<\/td><td style=\"padding:13px 14px;border:1px solid #cfdae3;text-align:left;vertical-align:top;\">Developers writing scripts, CI jobs, or explicit terminal workflows<\/td><td style=\"padding:13px 14px;border:1px solid #cfdae3;text-align:left;vertical-align:top;\">You must specify and maintain the commands yourself<\/td><\/tr><tr><td style=\"padding:13px 14px;border:1px solid #cfdae3;text-align:left;vertical-align:top;\">CLI-hosted MCP server<\/td><td style=\"padding:13px 14px;border:1px solid #cfdae3;text-align:left;vertical-align:top;\">Teams that want MCP tools and a per-session media credit cap<\/td><td style=\"padding:13px 14px;border:1px solid #cfdae3;text-align:left;vertical-align:top;\">Adds MCP configuration and another tool surface<\/td><\/tr><\/tbody><\/table><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">For most Claude Code users, <strong>Agent Skill + CLI is the best starting point<\/strong>. It keeps the setup small, uses Claude Code&#8217;s existing shell capability, and lets you work in natural language while preserving explicit cost checks.<\/p>\n\n\n\n<h2 id=\"prerequisites-before-you-start\" class=\"wp-block-heading\">Prerequisites Before You Start<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">You need:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Node.js 18 or later. The current GlobalGPT CLI package declares <code>node &gt;=18<\/code>.<\/li>\n\n\n\n<li>npm, which is normally installed with Node.js.<\/li>\n\n\n\n<li>Claude Code, installed and authenticated.<\/li>\n\n\n\n<li>A GlobalGPT account with access to the models or media tools you plan to use.<\/li>\n\n\n\n<li>A trusted project directory where Claude Code is allowed to run terminal commands.<\/li>\n\n\n\n<li>Approximately 10 to 20 minutes for a normal setup. Network or browser-authorization issues can make the first setup longer.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Run these checks in PowerShell, Terminal, or your preferred shell:<\/p>\n\n\n\n<div style=\"margin:24px 0;border:1px solid #26384f;border-radius:14px;background:#07111f;box-shadow:0 14px 34px rgba(7,17,31,.22);overflow:hidden;box-sizing:border-box;\">\n  <div style=\"display:flex;align-items:center;gap:8px;padding:12px 16px;border-bottom:1px solid #26384f;background:#0c1b2d;color:#c8d7e6;font-family:Inter,Segoe UI,Arial,sans-serif;font-size:13px;line-height:1.4;\">\n    <span style=\"width:10px;height:10px;border-radius:50%;background:#ff6b6b;display:inline-block;\"><\/span>\n    <span style=\"width:10px;height:10px;border-radius:50%;background:#ffd166;display:inline-block;\"><\/span>\n    <span style=\"width:10px;height:10px;border-radius:50%;background:#43d9ad;display:inline-block;\"><\/span>\n    <span style=\"margin-left:8px;color:#9fb3c8;font-weight:600;\">CLI command<\/span>\n  <\/div>\n  <pre style=\"margin:0;padding:18px 20px;overflow-x:auto;background:#07111f;color:#eaf7ff;font-family:'JetBrains Mono','SFMono-Regular',Consolas,'Liberation Mono',monospace;font-size:15px;line-height:1.7;white-space:pre;tab-size:2;\"><code>node --version\nnpm --version\nclaude --version<\/code><\/pre>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">The local Windows validation used Node.js <code>v24.18.0<\/code>, npm <code>11.16.0<\/code>, and Claude Code <code>2.1.211<\/code>. Those versions are examples, not minimum requirements; Node.js 18 or later is the relevant GlobalGPT CLI requirement.<\/p>\n\n\n\n<h2 id=\"step-1-install-globalgpt-cli\" class=\"wp-block-heading\">Step 1: Install GlobalGPT CLI<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">GlobalGPT CLI is available as a stable npm release. Install the latest stable version with:<\/p>\n\n\n\n<div style=\"margin:24px 0;border:1px solid #26384f;border-radius:14px;background:#07111f;box-shadow:0 14px 34px rgba(7,17,31,.22);overflow:hidden;box-sizing:border-box;\">\n  <div style=\"display:flex;align-items:center;gap:8px;padding:12px 16px;border-bottom:1px solid #26384f;background:#0c1b2d;color:#c8d7e6;font-family:Inter,Segoe UI,Arial,sans-serif;font-size:13px;line-height:1.4;\">\n    <span style=\"width:10px;height:10px;border-radius:50%;background:#ff6b6b;display:inline-block;\"><\/span>\n    <span style=\"width:10px;height:10px;border-radius:50%;background:#ffd166;display:inline-block;\"><\/span>\n    <span style=\"width:10px;height:10px;border-radius:50%;background:#43d9ad;display:inline-block;\"><\/span>\n    <span style=\"margin-left:8px;color:#9fb3c8;font-weight:600;\">CLI command<\/span>\n  <\/div>\n  <pre style=\"margin:0;padding:18px 20px;overflow-x:auto;background:#07111f;color:#eaf7ff;font-family:'JetBrains Mono','SFMono-Regular',Consolas,'Liberation Mono',monospace;font-size:15px;line-height:1.7;white-space:pre;tab-size:2;\"><code>npm i -g @glbgpt\/cli<\/code><\/pre>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">After installation, verify the command and version:<\/p>\n\n\n\n<div style=\"margin:24px 0;border:1px solid #26384f;border-radius:14px;background:#07111f;box-shadow:0 14px 34px rgba(7,17,31,.22);overflow:hidden;box-sizing:border-box;\">\n  <div style=\"display:flex;align-items:center;gap:8px;padding:12px 16px;border-bottom:1px solid #26384f;background:#0c1b2d;color:#c8d7e6;font-family:Inter,Segoe UI,Arial,sans-serif;font-size:13px;line-height:1.4;\">\n    <span style=\"width:10px;height:10px;border-radius:50%;background:#ff6b6b;display:inline-block;\"><\/span>\n    <span style=\"width:10px;height:10px;border-radius:50%;background:#ffd166;display:inline-block;\"><\/span>\n    <span style=\"width:10px;height:10px;border-radius:50%;background:#43d9ad;display:inline-block;\"><\/span>\n    <span style=\"margin-left:8px;color:#9fb3c8;font-weight:600;\">CLI command<\/span>\n  <\/div>\n  <pre style=\"margin:0;padding:18px 20px;overflow-x:auto;background:#07111f;color:#eaf7ff;font-family:'JetBrains Mono','SFMono-Regular',Consolas,'Liberation Mono',monospace;font-size:15px;line-height:1.7;white-space:pre;tab-size:2;\"><code>glbgpt --version\nglbgpt --help<\/code><\/pre>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">The package installs two interchangeable command names: <code>glbgpt<\/code> dan <code>globalgpt<\/code>. This guide uses the shorter <code>glbgpt<\/code> form.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Installation time and package count vary with your npm version, network conditions, and dependency updates. A successful installation completes without an <code>npm error<\/code>. The npm message <code>packages are looking for funding<\/code> is informational and does not indicate a failed installation.<\/p>\n\n\n\n<h2 id=\"step-2-sign-in-with-your-globalgpt-account\" class=\"wp-block-heading\">Step 2: Sign In with Your GlobalGPT Account<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">GlobalGPT CLI uses browser authorization with your GlobalGPT account, so you do not need to create or paste an API key into the command line.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Run:<\/p>\n\n\n\n<div style=\"margin:24px 0;border:1px solid #26384f;border-radius:14px;background:#07111f;box-shadow:0 14px 34px rgba(7,17,31,.22);overflow:hidden;box-sizing:border-box;\">\n  <div style=\"display:flex;align-items:center;gap:8px;padding:12px 16px;border-bottom:1px solid #26384f;background:#0c1b2d;color:#c8d7e6;font-family:Inter,Segoe UI,Arial,sans-serif;font-size:13px;line-height:1.4;\">\n    <span style=\"width:10px;height:10px;border-radius:50%;background:#ff6b6b;display:inline-block;\"><\/span>\n    <span style=\"width:10px;height:10px;border-radius:50%;background:#ffd166;display:inline-block;\"><\/span>\n    <span style=\"width:10px;height:10px;border-radius:50%;background:#43d9ad;display:inline-block;\"><\/span>\n    <span style=\"margin-left:8px;color:#9fb3c8;font-weight:600;\">CLI command<\/span>\n  <\/div>\n  <pre style=\"margin:0;padding:18px 20px;overflow-x:auto;background:#07111f;color:#eaf7ff;font-family:'JetBrains Mono','SFMono-Regular',Consolas,'Liberation Mono',monospace;font-size:15px;line-height:1.7;white-space:pre;tab-size:2;\"><code>glbgpt login<\/code><\/pre>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Keep the terminal open while the browser page is active. Sign in on the page that opens and approve the request. The CLI will continue after it receives the local callback.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If a browser cannot open automatically, use:<\/p>\n\n\n\n<div style=\"margin:24px 0;border:1px solid #26384f;border-radius:14px;background:#07111f;box-shadow:0 14px 34px rgba(7,17,31,.22);overflow:hidden;box-sizing:border-box;\">\n  <div style=\"display:flex;align-items:center;gap:8px;padding:12px 16px;border-bottom:1px solid #26384f;background:#0c1b2d;color:#c8d7e6;font-family:Inter,Segoe UI,Arial,sans-serif;font-size:13px;line-height:1.4;\">\n    <span style=\"width:10px;height:10px;border-radius:50%;background:#ff6b6b;display:inline-block;\"><\/span>\n    <span style=\"width:10px;height:10px;border-radius:50%;background:#ffd166;display:inline-block;\"><\/span>\n    <span style=\"width:10px;height:10px;border-radius:50%;background:#43d9ad;display:inline-block;\"><\/span>\n    <span style=\"margin-left:8px;color:#9fb3c8;font-weight:600;\">CLI command<\/span>\n  <\/div>\n  <pre style=\"margin:0;padding:18px 20px;overflow-x:auto;background:#07111f;color:#eaf7ff;font-family:'JetBrains Mono','SFMono-Regular',Consolas,'Liberation Mono',monospace;font-size:15px;line-height:1.7;white-space:pre;tab-size:2;\"><code>glbgpt login --no-browser<\/code><\/pre>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">For a headless machine or SSH session, use the one-time code flow:<\/p>\n\n\n\n<div style=\"margin:24px 0;border:1px solid #26384f;border-radius:14px;background:#07111f;box-shadow:0 14px 34px rgba(7,17,31,.22);overflow:hidden;box-sizing:border-box;\">\n  <div style=\"display:flex;align-items:center;gap:8px;padding:12px 16px;border-bottom:1px solid #26384f;background:#0c1b2d;color:#c8d7e6;font-family:Inter,Segoe UI,Arial,sans-serif;font-size:13px;line-height:1.4;\">\n    <span style=\"width:10px;height:10px;border-radius:50%;background:#ff6b6b;display:inline-block;\"><\/span>\n    <span style=\"width:10px;height:10px;border-radius:50%;background:#ffd166;display:inline-block;\"><\/span>\n    <span style=\"width:10px;height:10px;border-radius:50%;background:#43d9ad;display:inline-block;\"><\/span>\n    <span style=\"margin-left:8px;color:#9fb3c8;font-weight:600;\">CLI command<\/span>\n  <\/div>\n  <pre style=\"margin:0;padding:18px 20px;overflow-x:auto;background:#07111f;color:#eaf7ff;font-family:'JetBrains Mono','SFMono-Regular',Consolas,'Liberation Mono',monospace;font-size:15px;line-height:1.7;white-space:pre;tab-size:2;\"><code>glbgpt login --code<\/code><\/pre>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Never share the one-time code, authorization state, or callback URL. Only enter a code for a login flow you initiated yourself.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Verify the session after authorization:<\/p>\n\n\n\n<div style=\"margin:24px 0;border:1px solid #26384f;border-radius:14px;background:#07111f;box-shadow:0 14px 34px rgba(7,17,31,.22);overflow:hidden;box-sizing:border-box;\">\n  <div style=\"display:flex;align-items:center;gap:8px;padding:12px 16px;border-bottom:1px solid #26384f;background:#0c1b2d;color:#c8d7e6;font-family:Inter,Segoe UI,Arial,sans-serif;font-size:13px;line-height:1.4;\">\n    <span style=\"width:10px;height:10px;border-radius:50%;background:#ff6b6b;display:inline-block;\"><\/span>\n    <span style=\"width:10px;height:10px;border-radius:50%;background:#ffd166;display:inline-block;\"><\/span>\n    <span style=\"width:10px;height:10px;border-radius:50%;background:#43d9ad;display:inline-block;\"><\/span>\n    <span style=\"margin-left:8px;color:#9fb3c8;font-weight:600;\">CLI command<\/span>\n  <\/div>\n  <pre style=\"margin:0;padding:18px 20px;overflow-x:auto;background:#07111f;color:#eaf7ff;font-family:'JetBrains Mono','SFMono-Regular',Consolas,'Liberation Mono',monospace;font-size:15px;line-height:1.7;white-space:pre;tab-size:2;\"><code>glbgpt whoami\nglbgpt account<\/code><\/pre>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><code>glbgpt whoami<\/code> confirms the signed-in account. <code>glbgpt account<\/code> shows membership and credit information, which is useful before media generation.<\/p>\n\n\n\n<h2 id=\"step-3-test-globalgpt-cli-before-connecting-claude-code\" class=\"wp-block-heading\">Step 3: Test GlobalGPT CLI Before Connecting Claude Code<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Testing the CLI on its own isolates authentication or network problems from Claude Code integration problems.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Start the interactive terminal interface:<\/p>\n\n\n\n<div style=\"margin:24px 0;border:1px solid #26384f;border-radius:14px;background:#07111f;box-shadow:0 14px 34px rgba(7,17,31,.22);overflow:hidden;box-sizing:border-box;\">\n  <div style=\"display:flex;align-items:center;gap:8px;padding:12px 16px;border-bottom:1px solid #26384f;background:#0c1b2d;color:#c8d7e6;font-family:Inter,Segoe UI,Arial,sans-serif;font-size:13px;line-height:1.4;\">\n    <span style=\"width:10px;height:10px;border-radius:50%;background:#ff6b6b;display:inline-block;\"><\/span>\n    <span style=\"width:10px;height:10px;border-radius:50%;background:#ffd166;display:inline-block;\"><\/span>\n    <span style=\"width:10px;height:10px;border-radius:50%;background:#43d9ad;display:inline-block;\"><\/span>\n    <span style=\"margin-left:8px;color:#9fb3c8;font-weight:600;\">CLI command<\/span>\n  <\/div>\n  <pre style=\"margin:0;padding:18px 20px;overflow-x:auto;background:#07111f;color:#eaf7ff;font-family:'JetBrains Mono','SFMono-Regular',Consolas,'Liberation Mono',monospace;font-size:15px;line-height:1.7;white-space:pre;tab-size:2;\"><code>glbgpt<\/code><\/pre>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Send a short message such as <code>hi<\/code>. A successful response confirms that the CLI can start, read your account session, reach a chat model, and display a result.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Inside the GlobalGPT terminal interface, type <code>\/<\/code> to see available commands. Common commands include <code>\/model<\/code>, <code>\/models<\/code>, <code>\/image<\/code>, <code>\/video<\/code>, <code>\/tasks<\/code>, <code>\/status<\/code>, <code>\/account<\/code>, <code>\/cost<\/code>, <code>\/help<\/code>, dan <code>\/exit<\/code>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For a non-interactive test, use <code>exec<\/code>:<\/p>\n\n\n\n<div style=\"margin:24px 0;border:1px solid #26384f;border-radius:14px;background:#07111f;box-shadow:0 14px 34px rgba(7,17,31,.22);overflow:hidden;box-sizing:border-box;\">\n  <div style=\"display:flex;align-items:center;gap:8px;padding:12px 16px;border-bottom:1px solid #26384f;background:#0c1b2d;color:#c8d7e6;font-family:Inter,Segoe UI,Arial,sans-serif;font-size:13px;line-height:1.4;\">\n    <span style=\"width:10px;height:10px;border-radius:50%;background:#ff6b6b;display:inline-block;\"><\/span>\n    <span style=\"width:10px;height:10px;border-radius:50%;background:#ffd166;display:inline-block;\"><\/span>\n    <span style=\"width:10px;height:10px;border-radius:50%;background:#43d9ad;display:inline-block;\"><\/span>\n    <span style=\"margin-left:8px;color:#9fb3c8;font-weight:600;\">CLI command<\/span>\n  <\/div>\n  <pre style=\"margin:0;padding:18px 20px;overflow-x:auto;background:#07111f;color:#eaf7ff;font-family:'JetBrains Mono','SFMono-Regular',Consolas,'Liberation Mono',monospace;font-size:15px;line-height:1.7;white-space:pre;tab-size:2;\"><code>glbgpt exec \"Reply with exactly: connection successful\"<\/code><\/pre>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">The <code>exec<\/code> command prints the model&#8217;s answer and exits, making it a better fit for scripts and external agents.<\/p>\n\n\n\n<h2 id=\"step-4-install-the-globalgpt-agent-skill-for-claude-code\" class=\"wp-block-heading\">Step 4: Install the GlobalGPT Agent Skill for Claude Code<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">GlobalGPT CLI includes a bundled Agent Skill named <code>globalgpt-generate<\/code>. Install it with:<\/p>\n\n\n\n<div style=\"margin:24px 0;border:1px solid #26384f;border-radius:14px;background:#07111f;box-shadow:0 14px 34px rgba(7,17,31,.22);overflow:hidden;box-sizing:border-box;\">\n  <div style=\"display:flex;align-items:center;gap:8px;padding:12px 16px;border-bottom:1px solid #26384f;background:#0c1b2d;color:#c8d7e6;font-family:Inter,Segoe UI,Arial,sans-serif;font-size:13px;line-height:1.4;\">\n    <span style=\"width:10px;height:10px;border-radius:50%;background:#ff6b6b;display:inline-block;\"><\/span>\n    <span style=\"width:10px;height:10px;border-radius:50%;background:#ffd166;display:inline-block;\"><\/span>\n    <span style=\"width:10px;height:10px;border-radius:50%;background:#43d9ad;display:inline-block;\"><\/span>\n    <span style=\"margin-left:8px;color:#9fb3c8;font-weight:600;\">CLI command<\/span>\n  <\/div>\n  <pre style=\"margin:0;padding:18px 20px;overflow-x:auto;background:#07111f;color:#eaf7ff;font-family:'JetBrains Mono','SFMono-Regular',Consolas,'Liberation Mono',monospace;font-size:15px;line-height:1.7;white-space:pre;tab-size:2;\"><code>glbgpt skill install<\/code><\/pre>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">By default, the installer creates links in the agent skill directories, including <code>~\/.claude\/skills<\/code> dan <code>~\/.agents\/skills<\/code>. Linked installation means a future CLI update can also update the bundled skill.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If your environment does not support links or you prefer standalone files, use:<\/p>\n\n\n\n<div style=\"margin:24px 0;border:1px solid #26384f;border-radius:14px;background:#07111f;box-shadow:0 14px 34px rgba(7,17,31,.22);overflow:hidden;box-sizing:border-box;\">\n  <div style=\"display:flex;align-items:center;gap:8px;padding:12px 16px;border-bottom:1px solid #26384f;background:#0c1b2d;color:#c8d7e6;font-family:Inter,Segoe UI,Arial,sans-serif;font-size:13px;line-height:1.4;\">\n    <span style=\"width:10px;height:10px;border-radius:50%;background:#ff6b6b;display:inline-block;\"><\/span>\n    <span style=\"width:10px;height:10px;border-radius:50%;background:#ffd166;display:inline-block;\"><\/span>\n    <span style=\"width:10px;height:10px;border-radius:50%;background:#43d9ad;display:inline-block;\"><\/span>\n    <span style=\"margin-left:8px;color:#9fb3c8;font-weight:600;\">CLI command<\/span>\n  <\/div>\n  <pre style=\"margin:0;padding:18px 20px;overflow-x:auto;background:#07111f;color:#eaf7ff;font-family:'JetBrains Mono','SFMono-Regular',Consolas,'Liberation Mono',monospace;font-size:15px;line-height:1.7;white-space:pre;tab-size:2;\"><code>glbgpt skill install --copy<\/code><\/pre>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Re-running the copy option overwrites the copied skill, so do not make permanent custom edits inside that copied directory.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img decoding=\"async\" width=\"757\" height=\"480\" src=\"https:\/\/wp.glbgpt.com\/wp-content\/uploads\/2026\/07\/image-8.png\" alt=\"install the GlobalGPT Agent Skill for Claude Code successfully\" class=\"wp-image-16812\" srcset=\"https:\/\/wp.glbgpt.com\/wp-content\/uploads\/2026\/07\/image-8.png 757w, https:\/\/wp.glbgpt.com\/wp-content\/uploads\/2026\/07\/image-8-300x190.png 300w, https:\/\/wp.glbgpt.com\/wp-content\/uploads\/2026\/07\/image-8-18x12.png 18w\" sizes=\"(max-width: 757px) 100vw, 757px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Restart Claude Code after installation so it discovers the new skill:<\/p>\n\n\n\n<div style=\"margin:24px 0;border:1px solid #26384f;border-radius:14px;background:#07111f;box-shadow:0 14px 34px rgba(7,17,31,.22);overflow:hidden;box-sizing:border-box;\">\n  <div style=\"display:flex;align-items:center;gap:8px;padding:12px 16px;border-bottom:1px solid #26384f;background:#0c1b2d;color:#c8d7e6;font-family:Inter,Segoe UI,Arial,sans-serif;font-size:13px;line-height:1.4;\">\n    <span style=\"width:10px;height:10px;border-radius:50%;background:#ff6b6b;display:inline-block;\"><\/span>\n    <span style=\"width:10px;height:10px;border-radius:50%;background:#ffd166;display:inline-block;\"><\/span>\n    <span style=\"width:10px;height:10px;border-radius:50%;background:#43d9ad;display:inline-block;\"><\/span>\n    <span style=\"margin-left:8px;color:#9fb3c8;font-weight:600;\">CLI command<\/span>\n  <\/div>\n  <pre style=\"margin:0;padding:18px 20px;overflow-x:auto;background:#07111f;color:#eaf7ff;font-family:'JetBrains Mono','SFMono-Regular',Consolas,'Liberation Mono',monospace;font-size:15px;line-height:1.7;white-space:pre;tab-size:2;\"><code>cd \/path\/to\/your\/project\nclaude<\/code><\/pre>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">On Windows PowerShell, the directory command might look like:<\/p>\n\n\n\n<div style=\"margin:24px 0;border:1px solid #26384f;border-radius:14px;background:#07111f;box-shadow:0 14px 34px rgba(7,17,31,.22);overflow:hidden;box-sizing:border-box;\">\n  <div style=\"display:flex;align-items:center;gap:8px;padding:12px 16px;border-bottom:1px solid #26384f;background:#0c1b2d;color:#c8d7e6;font-family:Inter,Segoe UI,Arial,sans-serif;font-size:13px;line-height:1.4;\">\n    <span style=\"width:10px;height:10px;border-radius:50%;background:#ff6b6b;display:inline-block;\"><\/span>\n    <span style=\"width:10px;height:10px;border-radius:50%;background:#ffd166;display:inline-block;\"><\/span>\n    <span style=\"width:10px;height:10px;border-radius:50%;background:#43d9ad;display:inline-block;\"><\/span>\n    <span style=\"margin-left:8px;color:#9fb3c8;font-weight:600;\">CLI command<\/span>\n  <\/div>\n  <pre style=\"margin:0;padding:18px 20px;overflow-x:auto;background:#07111f;color:#eaf7ff;font-family:'JetBrains Mono','SFMono-Regular',Consolas,'Liberation Mono',monospace;font-size:15px;line-height:1.7;white-space:pre;tab-size:2;\"><code>Set-Location \"C:\\path\\to\\your\\project\"\nclaude<\/code><\/pre>\n<\/div>\n\n\n\n<h2 id=\"step-5-verify-globalgpt-cli-inside-claude-code-without-spending-credits\" class=\"wp-block-heading\">Step 5: Verify GlobalGPT CLI Inside Claude Code Without Spending Credits<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Start with a price estimate. This confirms that Claude Code can discover the skill, execute GlobalGPT CLI, query the current model catalog, and return a cost estimate without generating media.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Use a prompt like this in Claude Code:<\/p>\n\n\n\n<div style=\"margin:24px 0;border:1px solid #26384f;border-radius:14px;background:#07111f;box-shadow:0 14px 34px rgba(7,17,31,.22);overflow:hidden;box-sizing:border-box;\">\n  <div style=\"display:flex;align-items:center;gap:8px;padding:12px 16px;border-bottom:1px solid #26384f;background:#0c1b2d;color:#c8d7e6;font-family:Inter,Segoe UI,Arial,sans-serif;font-size:13px;line-height:1.4;\">\n    <span style=\"width:10px;height:10px;border-radius:50%;background:#ff6b6b;display:inline-block;\"><\/span>\n    <span style=\"width:10px;height:10px;border-radius:50%;background:#ffd166;display:inline-block;\"><\/span>\n    <span style=\"width:10px;height:10px;border-radius:50%;background:#43d9ad;display:inline-block;\"><\/span>\n    <span style=\"margin-left:8px;color:#9fb3c8;font-weight:600;\">CLI command<\/span>\n  <\/div>\n  <pre style=\"margin:0;padding:18px 20px;overflow-x:auto;background:#07111f;color:#eaf7ff;font-family:'JetBrains Mono','SFMono-Regular',Consolas,'Liberation Mono',monospace;font-size:15px;line-height:1.7;white-space:pre;tab-size:2;\"><code>Use GlobalGPT to estimate the cost of a 16:9 editorial hero image about AI content automation.\nDo not generate the image. Show me the model, supported parameters, command, and estimated credit cost, then wait for approval.<\/code><\/pre>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">The important phrase is <strong>\u201cDo not generate the image.\u201d<\/strong> The GlobalGPT skill is designed to use <code>--estimate<\/code> for this stage, but the explicit instruction makes your approval boundary clear.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can also invoke the skill explicitly with <code>\/globalgpt-generate<\/code> if your Claude Code interface lists it as a slash command. Natural-language requests are usually enough when the skill is installed and the task clearly involves GlobalGPT image or video generation.<\/p>\n\n\n\n<h2 id=\"step-6-generate-an-image-from-claude-code\" class=\"wp-block-heading\">Step 6: Generate an Image from Claude Code<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Once you approve the estimate, ask Claude Code to proceed. A precise request might be:<\/p>\n\n\n\n<div style=\"margin:24px 0;border:1px solid #26384f;border-radius:14px;background:#07111f;box-shadow:0 14px 34px rgba(7,17,31,.22);overflow:hidden;box-sizing:border-box;\">\n  <div style=\"display:flex;align-items:center;gap:8px;padding:12px 16px;border-bottom:1px solid #26384f;background:#0c1b2d;color:#c8d7e6;font-family:Inter,Segoe UI,Arial,sans-serif;font-size:13px;line-height:1.4;\">\n    <span style=\"width:10px;height:10px;border-radius:50%;background:#ff6b6b;display:inline-block;\"><\/span>\n    <span style=\"width:10px;height:10px;border-radius:50%;background:#ffd166;display:inline-block;\"><\/span>\n    <span style=\"width:10px;height:10px;border-radius:50%;background:#43d9ad;display:inline-block;\"><\/span>\n    <span style=\"margin-left:8px;color:#9fb3c8;font-weight:600;\">CLI command<\/span>\n  <\/div>\n  <pre style=\"margin:0;padding:18px 20px;overflow-x:auto;background:#07111f;color:#eaf7ff;font-family:'JetBrains Mono','SFMono-Regular',Consolas,'Liberation Mono',monospace;font-size:15px;line-height:1.7;white-space:pre;tab-size:2;\"><code>Use GlobalGPT to generate the approved 16:9 editorial hero image.\nThe image should show a terminal-first AI content workflow with clean dark UI, blue accents, and no logos or readable interface text.\nSave the result in .\/glbgpt-output\/. Do not start a second generation if the first command is interrupted or times out.<\/code><\/pre>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">GlobalGPT CLI can list the live image catalog with:<\/p>\n\n\n\n<div style=\"margin:24px 0;border:1px solid #26384f;border-radius:14px;background:#07111f;box-shadow:0 14px 34px rgba(7,17,31,.22);overflow:hidden;box-sizing:border-box;\">\n  <div style=\"display:flex;align-items:center;gap:8px;padding:12px 16px;border-bottom:1px solid #26384f;background:#0c1b2d;color:#c8d7e6;font-family:Inter,Segoe UI,Arial,sans-serif;font-size:13px;line-height:1.4;\">\n    <span style=\"width:10px;height:10px;border-radius:50%;background:#ff6b6b;display:inline-block;\"><\/span>\n    <span style=\"width:10px;height:10px;border-radius:50%;background:#ffd166;display:inline-block;\"><\/span>\n    <span style=\"width:10px;height:10px;border-radius:50%;background:#43d9ad;display:inline-block;\"><\/span>\n    <span style=\"margin-left:8px;color:#9fb3c8;font-weight:600;\">CLI command<\/span>\n  <\/div>\n  <pre style=\"margin:0;padding:18px 20px;overflow-x:auto;background:#07111f;color:#eaf7ff;font-family:'JetBrains Mono','SFMono-Regular',Consolas,'Liberation Mono',monospace;font-size:15px;line-height:1.7;white-space:pre;tab-size:2;\"><code>glbgpt model list image<\/code><\/pre>\n<\/div>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img decoding=\"async\" width=\"757\" height=\"480\" src=\"https:\/\/wp.glbgpt.com\/wp-content\/uploads\/2026\/07\/img_v3_0213r_2221a7cd-70fb-4fc1-91bc-9a667f88a17g.webp\" alt=\"claude code listing image catalog\" class=\"wp-image-16916\" srcset=\"https:\/\/wp.glbgpt.com\/wp-content\/uploads\/2026\/07\/img_v3_0213r_2221a7cd-70fb-4fc1-91bc-9a667f88a17g.webp 757w, https:\/\/wp.glbgpt.com\/wp-content\/uploads\/2026\/07\/img_v3_0213r_2221a7cd-70fb-4fc1-91bc-9a667f88a17g-300x190.webp 300w, https:\/\/wp.glbgpt.com\/wp-content\/uploads\/2026\/07\/img_v3_0213r_2221a7cd-70fb-4fc1-91bc-9a667f88a17g-18x12.webp 18w\" sizes=\"(max-width: 757px) 100vw, 757px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">It can inspect a model&#8217;s supported parameters with:<\/p>\n\n\n\n<div style=\"margin:24px 0;border:1px solid #26384f;border-radius:14px;background:#07111f;box-shadow:0 14px 34px rgba(7,17,31,.22);overflow:hidden;box-sizing:border-box;\">\n  <div style=\"display:flex;align-items:center;gap:8px;padding:12px 16px;border-bottom:1px solid #26384f;background:#0c1b2d;color:#c8d7e6;font-family:Inter,Segoe UI,Arial,sans-serif;font-size:13px;line-height:1.4;\">\n    <span style=\"width:10px;height:10px;border-radius:50%;background:#ff6b6b;display:inline-block;\"><\/span>\n    <span style=\"width:10px;height:10px;border-radius:50%;background:#ffd166;display:inline-block;\"><\/span>\n    <span style=\"width:10px;height:10px;border-radius:50%;background:#43d9ad;display:inline-block;\"><\/span>\n    <span style=\"margin-left:8px;color:#9fb3c8;font-weight:600;\">CLI command<\/span>\n  <\/div>\n  <pre style=\"margin:0;padding:18px 20px;overflow-x:auto;background:#07111f;color:#eaf7ff;font-family:'JetBrains Mono','SFMono-Regular',Consolas,'Liberation Mono',monospace;font-size:15px;line-height:1.7;white-space:pre;tab-size:2;\"><code>glbgpt model show &lt;model-id&gt;<\/code><\/pre>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Avoid hard-coding a model name in a reusable Claude Code prompt unless your workflow requires it. The catalog is served dynamically and can change. Let Claude list the available models, then choose one that supports the requested aspect ratio, resolution, reference images, or other requirements.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Direct CLI equivalents include:<\/p>\n\n\n\n<div style=\"margin:24px 0;border:1px solid #26384f;border-radius:14px;background:#07111f;box-shadow:0 14px 34px rgba(7,17,31,.22);overflow:hidden;box-sizing:border-box;\">\n  <div style=\"display:flex;align-items:center;gap:8px;padding:12px 16px;border-bottom:1px solid #26384f;background:#0c1b2d;color:#c8d7e6;font-family:Inter,Segoe UI,Arial,sans-serif;font-size:13px;line-height:1.4;\">\n    <span style=\"width:10px;height:10px;border-radius:50%;background:#ff6b6b;display:inline-block;\"><\/span>\n    <span style=\"width:10px;height:10px;border-radius:50%;background:#ffd166;display:inline-block;\"><\/span>\n    <span style=\"width:10px;height:10px;border-radius:50%;background:#43d9ad;display:inline-block;\"><\/span>\n    <span style=\"margin-left:8px;color:#9fb3c8;font-weight:600;\">CLI command<\/span>\n  <\/div>\n  <pre style=\"margin:0;padding:18px 20px;overflow-x:auto;background:#07111f;color:#eaf7ff;font-family:'JetBrains Mono','SFMono-Regular',Consolas,'Liberation Mono',monospace;font-size:15px;line-height:1.7;white-space:pre;tab-size:2;\"><code>glbgpt image \"terminal-first AI content automation, clean dark UI, blue accents\" --ar 16:9 --estimate\nglbgpt image \"terminal-first AI content automation, clean dark UI, blue accents\" --ar 16:9<\/code><\/pre>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Completed files are saved under <code>.\/glbgpt-output\/<\/code> unless you pass <code>--out<\/code>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"569\" src=\"https:\/\/wp.glbgpt.com\/wp-content\/uploads\/2026\/07\/d4c4db26-a288-4044-a32f-d70d095c7cc5-1024x569.png\" alt=\"generating image with globalgpt cli in claude code\" class=\"wp-image-16919\" srcset=\"https:\/\/wp.glbgpt.com\/wp-content\/uploads\/2026\/07\/d4c4db26-a288-4044-a32f-d70d095c7cc5-1024x569.png 1024w, https:\/\/wp.glbgpt.com\/wp-content\/uploads\/2026\/07\/d4c4db26-a288-4044-a32f-d70d095c7cc5-300x167.png 300w, https:\/\/wp.glbgpt.com\/wp-content\/uploads\/2026\/07\/d4c4db26-a288-4044-a32f-d70d095c7cc5-768x427.png 768w, https:\/\/wp.glbgpt.com\/wp-content\/uploads\/2026\/07\/d4c4db26-a288-4044-a32f-d70d095c7cc5-18x10.png 18w, https:\/\/wp.glbgpt.com\/wp-content\/uploads\/2026\/07\/d4c4db26-a288-4044-a32f-d70d095c7cc5.png 1280w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 id=\"step-7-generate-a-video-from-claude-code\" class=\"wp-block-heading\">Step 7: Generate a Video from Claude Code<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Video requests should specify the scene and only the parameters you actually need. Support for duration, resolution, aspect ratio, audio, and reference frames varies by model.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Start with an estimate:<\/p>\n\n\n\n<div style=\"margin:24px 0;border:1px solid #26384f;border-radius:14px;background:#07111f;box-shadow:0 14px 34px rgba(7,17,31,.22);overflow:hidden;box-sizing:border-box;\">\n  <div style=\"display:flex;align-items:center;gap:8px;padding:12px 16px;border-bottom:1px solid #26384f;background:#0c1b2d;color:#c8d7e6;font-family:Inter,Segoe UI,Arial,sans-serif;font-size:13px;line-height:1.4;\">\n    <span style=\"width:10px;height:10px;border-radius:50%;background:#ff6b6b;display:inline-block;\"><\/span>\n    <span style=\"width:10px;height:10px;border-radius:50%;background:#ffd166;display:inline-block;\"><\/span>\n    <span style=\"width:10px;height:10px;border-radius:50%;background:#43d9ad;display:inline-block;\"><\/span>\n    <span style=\"margin-left:8px;color:#9fb3c8;font-weight:600;\">CLI command<\/span>\n  <\/div>\n  <pre style=\"margin:0;padding:18px 20px;overflow-x:auto;background:#07111f;color:#eaf7ff;font-family:'JetBrains Mono','SFMono-Regular',Consolas,'Liberation Mono',monospace;font-size:15px;line-height:1.7;white-space:pre;tab-size:2;\"><code>Use GlobalGPT to estimate a 6-second, 16:9 video of the approved hero image coming to life with a slow camera push-in.\nList compatible video models first. Do not generate until I approve the model and credit estimate.<\/code><\/pre>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">After approval, Claude Code can use a command shaped like:<\/p>\n\n\n\n<div style=\"margin:24px 0;border:1px solid #26384f;border-radius:14px;background:#07111f;box-shadow:0 14px 34px rgba(7,17,31,.22);overflow:hidden;box-sizing:border-box;\">\n  <div style=\"display:flex;align-items:center;gap:8px;padding:12px 16px;border-bottom:1px solid #26384f;background:#0c1b2d;color:#c8d7e6;font-family:Inter,Segoe UI,Arial,sans-serif;font-size:13px;line-height:1.4;\">\n    <span style=\"width:10px;height:10px;border-radius:50%;background:#ff6b6b;display:inline-block;\"><\/span>\n    <span style=\"width:10px;height:10px;border-radius:50%;background:#ffd166;display:inline-block;\"><\/span>\n    <span style=\"width:10px;height:10px;border-radius:50%;background:#43d9ad;display:inline-block;\"><\/span>\n    <span style=\"margin-left:8px;color:#9fb3c8;font-weight:600;\">CLI command<\/span>\n  <\/div>\n  <pre style=\"margin:0;padding:18px 20px;overflow-x:auto;background:#07111f;color:#eaf7ff;font-family:'JetBrains Mono','SFMono-Regular',Consolas,'Liberation Mono',monospace;font-size:15px;line-height:1.7;white-space:pre;tab-size:2;\"><code>glbgpt video \"slow camera push-in, subtle screen glow, professional motion\" --ar 16:9 --duration 6 --start-image .\/glbgpt-output\/hero.png<\/code><\/pre>\n<\/div>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"569\" src=\"https:\/\/wp.glbgpt.com\/wp-content\/uploads\/2026\/07\/ccc0cdf8-2363-4fd1-8917-b0f9ce5e3578-1024x569.png\" alt=\"choosing video model\" class=\"wp-image-16920\" srcset=\"https:\/\/wp.glbgpt.com\/wp-content\/uploads\/2026\/07\/ccc0cdf8-2363-4fd1-8917-b0f9ce5e3578-1024x569.png 1024w, https:\/\/wp.glbgpt.com\/wp-content\/uploads\/2026\/07\/ccc0cdf8-2363-4fd1-8917-b0f9ce5e3578-300x167.png 300w, https:\/\/wp.glbgpt.com\/wp-content\/uploads\/2026\/07\/ccc0cdf8-2363-4fd1-8917-b0f9ce5e3578-768x427.png 768w, https:\/\/wp.glbgpt.com\/wp-content\/uploads\/2026\/07\/ccc0cdf8-2363-4fd1-8917-b0f9ce5e3578-18x10.png 18w, https:\/\/wp.glbgpt.com\/wp-content\/uploads\/2026\/07\/ccc0cdf8-2363-4fd1-8917-b0f9ce5e3578.png 1280w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">The CLI waits for the completed file by default. Video generation can take several minutes. Do not build an unnecessary polling loop, and do not automatically resubmit if a command is interrupted; the original server task may still be running and a second submission could spend credits twice.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"569\" src=\"https:\/\/wp.glbgpt.com\/wp-content\/uploads\/2026\/07\/18451aa8-cbe3-4301-b834-a5aaff145772-1024x569.png\" alt=\"generating video with globalgpt cli in claude code\" class=\"wp-image-16921\" srcset=\"https:\/\/wp.glbgpt.com\/wp-content\/uploads\/2026\/07\/18451aa8-cbe3-4301-b834-a5aaff145772-1024x569.png 1024w, https:\/\/wp.glbgpt.com\/wp-content\/uploads\/2026\/07\/18451aa8-cbe3-4301-b834-a5aaff145772-300x167.png 300w, https:\/\/wp.glbgpt.com\/wp-content\/uploads\/2026\/07\/18451aa8-cbe3-4301-b834-a5aaff145772-768x427.png 768w, https:\/\/wp.glbgpt.com\/wp-content\/uploads\/2026\/07\/18451aa8-cbe3-4301-b834-a5aaff145772-18x10.png 18w, https:\/\/wp.glbgpt.com\/wp-content\/uploads\/2026\/07\/18451aa8-cbe3-4301-b834-a5aaff145772.png 1280w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Check interrupted or detached tasks with:<\/p>\n\n\n\n<div style=\"margin:24px 0;border:1px solid #26384f;border-radius:14px;background:#07111f;box-shadow:0 14px 34px rgba(7,17,31,.22);overflow:hidden;box-sizing:border-box;\">\n  <div style=\"display:flex;align-items:center;gap:8px;padding:12px 16px;border-bottom:1px solid #26384f;background:#0c1b2d;color:#c8d7e6;font-family:Inter,Segoe UI,Arial,sans-serif;font-size:13px;line-height:1.4;\">\n    <span style=\"width:10px;height:10px;border-radius:50%;background:#ff6b6b;display:inline-block;\"><\/span>\n    <span style=\"width:10px;height:10px;border-radius:50%;background:#ffd166;display:inline-block;\"><\/span>\n    <span style=\"width:10px;height:10px;border-radius:50%;background:#43d9ad;display:inline-block;\"><\/span>\n    <span style=\"margin-left:8px;color:#9fb3c8;font-weight:600;\">CLI command<\/span>\n  <\/div>\n  <pre style=\"margin:0;padding:18px 20px;overflow-x:auto;background:#07111f;color:#eaf7ff;font-family:'JetBrains Mono','SFMono-Regular',Consolas,'Liberation Mono',monospace;font-size:15px;line-height:1.7;white-space:pre;tab-size:2;\"><code>glbgpt task list\nglbgpt task show last\nglbgpt task wait last\nglbgpt task download last<\/code><\/pre>\n<\/div>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"606\" src=\"https:\/\/wp.glbgpt.com\/wp-content\/uploads\/2026\/07\/6e333992-b952-4de2-8bc2-7eae9b071036-1024x606.png\" alt=\"glbgpt grok imagine video\" class=\"wp-image-16922\" srcset=\"https:\/\/wp.glbgpt.com\/wp-content\/uploads\/2026\/07\/6e333992-b952-4de2-8bc2-7eae9b071036-1024x606.png 1024w, https:\/\/wp.glbgpt.com\/wp-content\/uploads\/2026\/07\/6e333992-b952-4de2-8bc2-7eae9b071036-300x177.png 300w, https:\/\/wp.glbgpt.com\/wp-content\/uploads\/2026\/07\/6e333992-b952-4de2-8bc2-7eae9b071036-768x454.png 768w, https:\/\/wp.glbgpt.com\/wp-content\/uploads\/2026\/07\/6e333992-b952-4de2-8bc2-7eae9b071036-18x12.png 18w, https:\/\/wp.glbgpt.com\/wp-content\/uploads\/2026\/07\/6e333992-b952-4de2-8bc2-7eae9b071036.png 1280w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 id=\"step-8-automate-bulk-text-work-with-glbgpt-exec\" class=\"wp-block-heading\">Step 8: Automate Bulk Text Work with glbgpt exec<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><code>glbgpt exec<\/code> runs one non-interactive model request and returns plain text, JSON, or JSONL. It is useful when Claude Code needs to apply the same operation across many files or keep a very large source file out of the main Claude Code conversation.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Example direct command:<\/p>\n\n\n\n<div style=\"margin:24px 0;border:1px solid #26384f;border-radius:14px;background:#07111f;box-shadow:0 14px 34px rgba(7,17,31,.22);overflow:hidden;box-sizing:border-box;\">\n  <div style=\"display:flex;align-items:center;gap:8px;padding:12px 16px;border-bottom:1px solid #26384f;background:#0c1b2d;color:#c8d7e6;font-family:Inter,Segoe UI,Arial,sans-serif;font-size:13px;line-height:1.4;\">\n    <span style=\"width:10px;height:10px;border-radius:50%;background:#ff6b6b;display:inline-block;\"><\/span>\n    <span style=\"width:10px;height:10px;border-radius:50%;background:#ffd166;display:inline-block;\"><\/span>\n    <span style=\"width:10px;height:10px;border-radius:50%;background:#43d9ad;display:inline-block;\"><\/span>\n    <span style=\"margin-left:8px;color:#9fb3c8;font-weight:600;\">CLI command<\/span>\n  <\/div>\n  <pre style=\"margin:0;padding:18px 20px;overflow-x:auto;background:#07111f;color:#eaf7ff;font-family:'JetBrains Mono','SFMono-Regular',Consolas,'Liberation Mono',monospace;font-size:15px;line-height:1.7;white-space:pre;tab-size:2;\"><code>glbgpt exec \"Extract the final decision, owner, and due date\" --file meeting-notes.md --json<\/code><\/pre>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">For structured output, define a JSON Schema file and pass it with <code>--output-schema<\/code>:<\/p>\n\n\n\n<div style=\"margin:24px 0;border:1px solid #26384f;border-radius:14px;background:#07111f;box-shadow:0 14px 34px rgba(7,17,31,.22);overflow:hidden;box-sizing:border-box;\">\n  <div style=\"display:flex;align-items:center;gap:8px;padding:12px 16px;border-bottom:1px solid #26384f;background:#0c1b2d;color:#c8d7e6;font-family:Inter,Segoe UI,Arial,sans-serif;font-size:13px;line-height:1.4;\">\n    <span style=\"width:10px;height:10px;border-radius:50%;background:#ff6b6b;display:inline-block;\"><\/span>\n    <span style=\"width:10px;height:10px;border-radius:50%;background:#ffd166;display:inline-block;\"><\/span>\n    <span style=\"width:10px;height:10px;border-radius:50%;background:#43d9ad;display:inline-block;\"><\/span>\n    <span style=\"margin-left:8px;color:#9fb3c8;font-weight:600;\">CLI command<\/span>\n  <\/div>\n  <pre style=\"margin:0;padding:18px 20px;overflow-x:auto;background:#07111f;color:#eaf7ff;font-family:'JetBrains Mono','SFMono-Regular',Consolas,'Liberation Mono',monospace;font-size:15px;line-height:1.7;white-space:pre;tab-size:2;\"><code>glbgpt exec \"Classify every content brief by channel and intent\" \\\n  --file content-queue.json \\\n  --output-schema classification-schema.json \\\n  --json<\/code><\/pre>\n<\/div>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"569\" src=\"https:\/\/wp.glbgpt.com\/wp-content\/uploads\/2026\/07\/d35c7e22-848c-4318-9e9c-8f1267c1fef2-1024x569.png\" alt=\"Automate Bulk Text Work with glbgpt exec\" class=\"wp-image-16924\" srcset=\"https:\/\/wp.glbgpt.com\/wp-content\/uploads\/2026\/07\/d35c7e22-848c-4318-9e9c-8f1267c1fef2-1024x569.png 1024w, https:\/\/wp.glbgpt.com\/wp-content\/uploads\/2026\/07\/d35c7e22-848c-4318-9e9c-8f1267c1fef2-300x167.png 300w, https:\/\/wp.glbgpt.com\/wp-content\/uploads\/2026\/07\/d35c7e22-848c-4318-9e9c-8f1267c1fef2-768x427.png 768w, https:\/\/wp.glbgpt.com\/wp-content\/uploads\/2026\/07\/d35c7e22-848c-4318-9e9c-8f1267c1fef2-18x10.png 18w, https:\/\/wp.glbgpt.com\/wp-content\/uploads\/2026\/07\/d35c7e22-848c-4318-9e9c-8f1267c1fef2.png 1280w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">In Claude Code, you can say:<\/p>\n\n\n\n<div style=\"margin:24px 0;border:1px solid #26384f;border-radius:14px;background:#07111f;box-shadow:0 14px 34px rgba(7,17,31,.22);overflow:hidden;box-sizing:border-box;\">\n  <div style=\"display:flex;align-items:center;gap:8px;padding:12px 16px;border-bottom:1px solid #26384f;background:#0c1b2d;color:#c8d7e6;font-family:Inter,Segoe UI,Arial,sans-serif;font-size:13px;line-height:1.4;\">\n    <span style=\"width:10px;height:10px;border-radius:50%;background:#ff6b6b;display:inline-block;\"><\/span>\n    <span style=\"width:10px;height:10px;border-radius:50%;background:#ffd166;display:inline-block;\"><\/span>\n    <span style=\"width:10px;height:10px;border-radius:50%;background:#43d9ad;display:inline-block;\"><\/span>\n    <span style=\"margin-left:8px;color:#9fb3c8;font-weight:600;\">CLI command<\/span>\n  <\/div>\n  <pre style=\"margin:0;padding:18px 20px;overflow-x:auto;background:#07111f;color:#eaf7ff;font-family:'JetBrains Mono','SFMono-Regular',Consolas,'Liberation Mono',monospace;font-size:15px;line-height:1.7;white-space:pre;tab-size:2;\"><code>Use GlobalGPT exec to classify the entries in content-queue.json according to classification-schema.json.\nShow me the exact command first. Save the final JSON result to .\/results\/classified-content.json.\nDo not modify the source file.<\/code><\/pre>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Use this pattern for repetitive or high-volume work, not for a one-line question that Claude Code can answer directly.<\/p>\n\n\n\n<h2 id=\"optional-connect-globalgpt-as-an-mcp-server\" class=\"wp-block-heading\">Optional: Connect GlobalGPT as an MCP Server<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The Agent Skill is the recommended path when Claude Code can execute shell commands. GlobalGPT CLI can also run an MCP server over standard input\/output:<\/p>\n\n\n\n<div style=\"margin:24px 0;border:1px solid #26384f;border-radius:14px;background:#07111f;box-shadow:0 14px 34px rgba(7,17,31,.22);overflow:hidden;box-sizing:border-box;\">\n  <div style=\"display:flex;align-items:center;gap:8px;padding:12px 16px;border-bottom:1px solid #26384f;background:#0c1b2d;color:#c8d7e6;font-family:Inter,Segoe UI,Arial,sans-serif;font-size:13px;line-height:1.4;\">\n    <span style=\"width:10px;height:10px;border-radius:50%;background:#ff6b6b;display:inline-block;\"><\/span>\n    <span style=\"width:10px;height:10px;border-radius:50%;background:#ffd166;display:inline-block;\"><\/span>\n    <span style=\"width:10px;height:10px;border-radius:50%;background:#43d9ad;display:inline-block;\"><\/span>\n    <span style=\"margin-left:8px;color:#9fb3c8;font-weight:600;\">CLI command<\/span>\n  <\/div>\n  <pre style=\"margin:0;padding:18px 20px;overflow-x:auto;background:#07111f;color:#eaf7ff;font-family:'JetBrains Mono','SFMono-Regular',Consolas,'Liberation Mono',monospace;font-size:15px;line-height:1.7;white-space:pre;tab-size:2;\"><code>claude mcp add glbgpt -- glbgpt mcp\nclaude mcp list<\/code><\/pre>\n<\/div>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"569\" src=\"https:\/\/wp.glbgpt.com\/wp-content\/uploads\/2026\/07\/229c618b-949c-4237-8e81-85056d224030-1024x569.png\" alt=\"Connect GlobalGPT as an MCP Server\" class=\"wp-image-16925\" srcset=\"https:\/\/wp.glbgpt.com\/wp-content\/uploads\/2026\/07\/229c618b-949c-4237-8e81-85056d224030-1024x569.png 1024w, https:\/\/wp.glbgpt.com\/wp-content\/uploads\/2026\/07\/229c618b-949c-4237-8e81-85056d224030-300x167.png 300w, https:\/\/wp.glbgpt.com\/wp-content\/uploads\/2026\/07\/229c618b-949c-4237-8e81-85056d224030-768x427.png 768w, https:\/\/wp.glbgpt.com\/wp-content\/uploads\/2026\/07\/229c618b-949c-4237-8e81-85056d224030-18x10.png 18w, https:\/\/wp.glbgpt.com\/wp-content\/uploads\/2026\/07\/229c618b-949c-4237-8e81-85056d224030.png 1280w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">This exposes GlobalGPT chat, image generation, video generation, task checking, and model listing as MCP tools.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Media generation is capped at <strong>4,000 credits per MCP server session by default<\/strong>. You can set a different session cap:<\/p>\n\n\n\n<div style=\"margin:24px 0;border:1px solid #26384f;border-radius:14px;background:#07111f;box-shadow:0 14px 34px rgba(7,17,31,.22);overflow:hidden;box-sizing:border-box;\">\n  <div style=\"display:flex;align-items:center;gap:8px;padding:12px 16px;border-bottom:1px solid #26384f;background:#0c1b2d;color:#c8d7e6;font-family:Inter,Segoe UI,Arial,sans-serif;font-size:13px;line-height:1.4;\">\n    <span style=\"width:10px;height:10px;border-radius:50%;background:#ff6b6b;display:inline-block;\"><\/span>\n    <span style=\"width:10px;height:10px;border-radius:50%;background:#ffd166;display:inline-block;\"><\/span>\n    <span style=\"width:10px;height:10px;border-radius:50%;background:#43d9ad;display:inline-block;\"><\/span>\n    <span style=\"margin-left:8px;color:#9fb3c8;font-weight:600;\">CLI command<\/span>\n  <\/div>\n  <pre style=\"margin:0;padding:18px 20px;overflow-x:auto;background:#07111f;color:#eaf7ff;font-family:'JetBrains Mono','SFMono-Regular',Consolas,'Liberation Mono',monospace;font-size:15px;line-height:1.7;white-space:pre;tab-size:2;\"><code>claude mcp add glbgpt -- glbgpt mcp --max-credits 8000<\/code><\/pre>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">To disable MCP media spending while retaining non-media capabilities, use <code>--max-credits 0<\/code>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Choose MCP when you want explicit MCP tools or session-level credit enforcement. Choose the Agent Skill when you want Claude Code to drive the normal CLI with minimal configuration.<\/p>\n\n\n\n<h2 id=\"troubleshooting-globalgpt-cli-on-windows\" class=\"wp-block-heading\">Troubleshooting GlobalGPT CLI on Windows<\/h2>\n\n\n\n<h3 id=\"npm-returns-enotfound-or-getaddrinfo\" class=\"wp-block-heading\">npm Returns <code>ENOTFOUND<\/code> atau <code>getaddrinfo<\/code><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Sebuah <code>ENOTFOUND<\/code> error means npm could not resolve the registry hostname. It does not prove that the GlobalGPT package is missing or damaged.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Check the active registry and DNS resolution:<\/p>\n\n\n\n<div style=\"margin:24px 0;border:1px solid #26384f;border-radius:14px;background:#07111f;box-shadow:0 14px 34px rgba(7,17,31,.22);overflow:hidden;box-sizing:border-box;\">\n  <div style=\"display:flex;align-items:center;gap:8px;padding:12px 16px;border-bottom:1px solid #26384f;background:#0c1b2d;color:#c8d7e6;font-family:Inter,Segoe UI,Arial,sans-serif;font-size:13px;line-height:1.4;\">\n    <span style=\"width:10px;height:10px;border-radius:50%;background:#ff6b6b;display:inline-block;\"><\/span>\n    <span style=\"width:10px;height:10px;border-radius:50%;background:#ffd166;display:inline-block;\"><\/span>\n    <span style=\"width:10px;height:10px;border-radius:50%;background:#43d9ad;display:inline-block;\"><\/span>\n    <span style=\"margin-left:8px;color:#9fb3c8;font-weight:600;\">CLI command<\/span>\n  <\/div>\n  <pre style=\"margin:0;padding:18px 20px;overflow-x:auto;background:#07111f;color:#eaf7ff;font-family:'JetBrains Mono','SFMono-Regular',Consolas,'Liberation Mono',monospace;font-size:15px;line-height:1.7;white-space:pre;tab-size:2;\"><code>npm config get registry\nResolve-DnsName registry.npmjs.org\nnpm ping<\/code><\/pre>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">If npm is configured to use a mirror, test that hostname as well. Changing registries will not solve a DNS failure when neither hostname resolves.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In the validated Windows case, the active WLAN DNS server could not resolve npm domains. The first reset failed because PowerShell did not have administrator permission. After opening an elevated PowerShell window, resetting DNS to automatic, and clearing the cache, both <code>Resolve-DnsName<\/code> dan <code>npm ping<\/code> succeeded.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">First identify the active adapter:<\/p>\n\n\n\n<div style=\"margin:24px 0;border:1px solid #26384f;border-radius:14px;background:#07111f;box-shadow:0 14px 34px rgba(7,17,31,.22);overflow:hidden;box-sizing:border-box;\">\n  <div style=\"display:flex;align-items:center;gap:8px;padding:12px 16px;border-bottom:1px solid #26384f;background:#0c1b2d;color:#c8d7e6;font-family:Inter,Segoe UI,Arial,sans-serif;font-size:13px;line-height:1.4;\">\n    <span style=\"width:10px;height:10px;border-radius:50%;background:#ff6b6b;display:inline-block;\"><\/span>\n    <span style=\"width:10px;height:10px;border-radius:50%;background:#ffd166;display:inline-block;\"><\/span>\n    <span style=\"width:10px;height:10px;border-radius:50%;background:#43d9ad;display:inline-block;\"><\/span>\n    <span style=\"margin-left:8px;color:#9fb3c8;font-weight:600;\">CLI command<\/span>\n  <\/div>\n  <pre style=\"margin:0;padding:18px 20px;overflow-x:auto;background:#07111f;color:#eaf7ff;font-family:'JetBrains Mono','SFMono-Regular',Consolas,'Liberation Mono',monospace;font-size:15px;line-height:1.7;white-space:pre;tab-size:2;\"><code>Get-NetAdapter | Where-Object Status -eq \"Up\"<\/code><\/pre>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Then run the reset from <strong>PowerShell as Administrator<\/strong>, replacing <code>WLAN<\/code> if your active interface uses another name:<\/p>\n\n\n\n<div style=\"margin:24px 0;border:1px solid #26384f;border-radius:14px;background:#07111f;box-shadow:0 14px 34px rgba(7,17,31,.22);overflow:hidden;box-sizing:border-box;\">\n  <div style=\"display:flex;align-items:center;gap:8px;padding:12px 16px;border-bottom:1px solid #26384f;background:#0c1b2d;color:#c8d7e6;font-family:Inter,Segoe UI,Arial,sans-serif;font-size:13px;line-height:1.4;\">\n    <span style=\"width:10px;height:10px;border-radius:50%;background:#ff6b6b;display:inline-block;\"><\/span>\n    <span style=\"width:10px;height:10px;border-radius:50%;background:#ffd166;display:inline-block;\"><\/span>\n    <span style=\"width:10px;height:10px;border-radius:50%;background:#43d9ad;display:inline-block;\"><\/span>\n    <span style=\"margin-left:8px;color:#9fb3c8;font-weight:600;\">CLI command<\/span>\n  <\/div>\n  <pre style=\"margin:0;padding:18px 20px;overflow-x:auto;background:#07111f;color:#eaf7ff;font-family:'JetBrains Mono','SFMono-Regular',Consolas,'Liberation Mono',monospace;font-size:15px;line-height:1.7;white-space:pre;tab-size:2;\"><code>Set-DnsClientServerAddress -InterfaceAlias \"WLAN\" -ResetServerAddresses\nClear-DnsClientCache\nResolve-DnsName registry.npmjs.org\nnpm ping<\/code><\/pre>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">If your organization manages DNS or network policy, contact the administrator instead of overriding it.<\/p>\n\n\n\n<h3 id=\"browser-authorization-times-out\" class=\"wp-block-heading\">Browser Authorization Times Out<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><code>Timed out waiting for browser authorization<\/code> means the local waiting window ended. It does not mean npm installation failed.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Jalankan <code>glbgpt login<\/code> again and finish the browser flow while the terminal remains open. If the browser opens on another machine or the callback cannot reach the terminal, use <code>glbgpt login --code<\/code>.<\/p>\n\n\n\n<h3 id=\"glbgpt-is-not-recognized-after-installation\" class=\"wp-block-heading\"><code>glbgpt<\/code> Is Not Recognized After Installation<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Open a new terminal and try again. If the command is still unavailable, inspect the global npm prefix:<\/p>\n\n\n\n<div style=\"margin:24px 0;border:1px solid #26384f;border-radius:14px;background:#07111f;box-shadow:0 14px 34px rgba(7,17,31,.22);overflow:hidden;box-sizing:border-box;\">\n  <div style=\"display:flex;align-items:center;gap:8px;padding:12px 16px;border-bottom:1px solid #26384f;background:#0c1b2d;color:#c8d7e6;font-family:Inter,Segoe UI,Arial,sans-serif;font-size:13px;line-height:1.4;\">\n    <span style=\"width:10px;height:10px;border-radius:50%;background:#ff6b6b;display:inline-block;\"><\/span>\n    <span style=\"width:10px;height:10px;border-radius:50%;background:#ffd166;display:inline-block;\"><\/span>\n    <span style=\"width:10px;height:10px;border-radius:50%;background:#43d9ad;display:inline-block;\"><\/span>\n    <span style=\"margin-left:8px;color:#9fb3c8;font-weight:600;\">CLI command<\/span>\n  <\/div>\n  <pre style=\"margin:0;padding:18px 20px;overflow-x:auto;background:#07111f;color:#eaf7ff;font-family:'JetBrains Mono','SFMono-Regular',Consolas,'Liberation Mono',monospace;font-size:15px;line-height:1.7;white-space:pre;tab-size:2;\"><code>npm prefix -g<\/code><\/pre>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Confirm that npm&#8217;s global executable directory is on your <code>PATH<\/code>, then rerun <code>glbgpt --version<\/code>.<\/p>\n\n\n\n<h3 id=\"claude-code-does-not-detect-the-skill\" class=\"wp-block-heading\">Claude Code Does Not Detect the Skill<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Jalankan <code>glbgpt skill install<\/code> again, confirm that it reports a Claude skill directory, fully exit Claude Code, and start a new session. You can also try <code>\/globalgpt-generate<\/code> to invoke the skill explicitly.<\/p>\n\n\n\n<h3 id=\"a-model-or-parameter-is-rejected\" class=\"wp-block-heading\">A Model or Parameter Is Rejected<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The model catalog is dynamic, and parameter support differs by model. Refresh the catalog and inspect the selected model:<\/p>\n\n\n\n<div style=\"margin:24px 0;border:1px solid #26384f;border-radius:14px;background:#07111f;box-shadow:0 14px 34px rgba(7,17,31,.22);overflow:hidden;box-sizing:border-box;\">\n  <div style=\"display:flex;align-items:center;gap:8px;padding:12px 16px;border-bottom:1px solid #26384f;background:#0c1b2d;color:#c8d7e6;font-family:Inter,Segoe UI,Arial,sans-serif;font-size:13px;line-height:1.4;\">\n    <span style=\"width:10px;height:10px;border-radius:50%;background:#ff6b6b;display:inline-block;\"><\/span>\n    <span style=\"width:10px;height:10px;border-radius:50%;background:#ffd166;display:inline-block;\"><\/span>\n    <span style=\"width:10px;height:10px;border-radius:50%;background:#43d9ad;display:inline-block;\"><\/span>\n    <span style=\"margin-left:8px;color:#9fb3c8;font-weight:600;\">CLI command<\/span>\n  <\/div>\n  <pre style=\"margin:0;padding:18px 20px;overflow-x:auto;background:#07111f;color:#eaf7ff;font-family:'JetBrains Mono','SFMono-Regular',Consolas,'Liberation Mono',monospace;font-size:15px;line-height:1.7;white-space:pre;tab-size:2;\"><code>glbgpt model list image\nglbgpt model list video\nglbgpt model show &lt;model-id&gt;<\/code><\/pre>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Use a listed value or omit the optional flag so the model default applies.<\/p>\n\n\n\n<h3 id=\"a-generation-command-appears-to-hang\" class=\"wp-block-heading\">A Generation Command Appears to Hang<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Image and video commands wait for the final file by default. Video generation can take minutes. If the terminal was interrupted, inspect the existing task before considering another submission:<\/p>\n\n\n\n<div style=\"margin:24px 0;border:1px solid #26384f;border-radius:14px;background:#07111f;box-shadow:0 14px 34px rgba(7,17,31,.22);overflow:hidden;box-sizing:border-box;\">\n  <div style=\"display:flex;align-items:center;gap:8px;padding:12px 16px;border-bottom:1px solid #26384f;background:#0c1b2d;color:#c8d7e6;font-family:Inter,Segoe UI,Arial,sans-serif;font-size:13px;line-height:1.4;\">\n    <span style=\"width:10px;height:10px;border-radius:50%;background:#ff6b6b;display:inline-block;\"><\/span>\n    <span style=\"width:10px;height:10px;border-radius:50%;background:#ffd166;display:inline-block;\"><\/span>\n    <span style=\"width:10px;height:10px;border-radius:50%;background:#43d9ad;display:inline-block;\"><\/span>\n    <span style=\"margin-left:8px;color:#9fb3c8;font-weight:600;\">CLI command<\/span>\n  <\/div>\n  <pre style=\"margin:0;padding:18px 20px;overflow-x:auto;background:#07111f;color:#eaf7ff;font-family:'JetBrains Mono','SFMono-Regular',Consolas,'Liberation Mono',monospace;font-size:15px;line-height:1.7;white-space:pre;tab-size:2;\"><code>glbgpt task list\nglbgpt task show &lt;task-id&gt;<\/code><\/pre>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Never retry a paid generation blindly.<\/p>\n\n\n\n<h2 id=\"how-to-measure-time-and-token-use-for-each-claude-code-task\" class=\"wp-block-heading\">How to Measure Time and Token Use for Each Claude Code Task<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Before each measured Claude Code task:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Jalankan <code>\/penggunaan<\/code> and record the session values displayed.<\/li>\n\n\n\n<li>Record the wall-clock start time.<\/li>\n\n\n\n<li>Run only the task being measured.<\/li>\n\n\n\n<li>Record the finish time and run <code>\/penggunaan<\/code> again.<\/li>\n\n\n\n<li>Calculate the elapsed time and, when exact token counts are available, the before\/after token delta.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">Claude Code&#8217;s current documentation states that the <code>\/penggunaan<\/code> command provides token usage for API users. Subscription interfaces may show plan usage rather than a precise token count, so record exactly what the current interface exposes and label unavailable values as <code>Tidak tersedia<\/code>; do not estimate or invent token counts.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For GlobalGPT media tasks, also record the account or transaction balance before and after generation. Claude Code tokens and GlobalGPT media credits are different units and should be reported separately.<\/p>\n\n\n\n<h2 id=\"frequently-asked-questions\" class=\"wp-block-heading\">Pertanyaan yang Sering Diajukan<\/h2>\n\n\n\n<h3 id=\"do-i-need-a-globalgpt-api-key\" class=\"wp-block-heading\">Do I need a GlobalGPT API key?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">No. GlobalGPT CLI uses browser authorization with your GlobalGPT account. Run <code>glbgpt login<\/code>, complete the approval flow, and let the CLI store its local session credential. Do not paste one-time login codes or authorization URLs into project files, screenshots, or shared chat logs.<\/p>\n\n\n\n<h3 id=\"can-i-use-globalgpt-cli-without-claude-code\" class=\"wp-block-heading\">Can I use GlobalGPT CLI without Claude Code?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Yes. Run <code>glbgpt<\/code> for an interactive chat, <code>glbgpt image<\/code> atau <code>glbgpt video<\/code> for media, and <code>glbgpt exec<\/code> for non-interactive scripts. Claude Code adds project context, reasoning, file orchestration, and natural-language control, but the CLI works independently.<\/p>\n\n\n\n<h3 id=\"should-i-use-the-agent-skill-or-mcp\" class=\"wp-block-heading\">Should I use the Agent Skill or MCP?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Use the Agent Skill when Claude Code can run shell commands and you want the simplest natural-language workflow. Use MCP when you prefer explicit MCP tools or need the MCP server&#8217;s session-level media credit cap. Both surfaces use the same GlobalGPT account.<\/p>\n\n\n\n<h3 id=\"where-does-globalgpt-save-generated-files\" class=\"wp-block-heading\">Where does GlobalGPT save generated files?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">By default, generated images and videos are saved under <code>glbgpt-output\/<\/code> relative to the directory where the command or server started. Pass <code>--out &lt;directory&gt;<\/code> when you need a different location. The command prints the saved path after completion.<\/p>\n\n\n\n<h3 id=\"how-can-i-avoid-accidental-media-spending\" class=\"wp-block-heading\">How can I avoid accidental media spending?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Gunakan <code>--estimate<\/code> before every new media configuration, ask Claude Code to wait for explicit approval, and avoid unattended batches. For MCP, set <code>--max-credits 0<\/code> to disable media or choose a deliberate session cap. Never automatically retry an interrupted generation.<\/p>\n\n\n\n<h3 id=\"is-globalgpt-cli-stable\" class=\"wp-block-heading\">Is GlobalGPT CLI stable?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">As of July 21, 2026, GlobalGPT CLI is available as a stable npm release, version <code>0.1.0<\/code>. Install it with <code>npm i -g @glbgpt\/cli<\/code>, then run <code>glbgpt --version<\/code> to confirm the installed version.<\/p>\n\n\n\n<h2 id=\"key-takeaways\" class=\"wp-block-heading\">Poin Penting<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Install the stable CLI with <code>npm i -g @glbgpt\/cli<\/code> and verify it before involving Claude Code.<\/li>\n\n\n\n<li>Use browser authorization; no API key is required for the documented login flow.<\/li>\n\n\n\n<li>Jalankan <code>glbgpt skill install<\/code>, then restart Claude Code so it can discover <code>globalgpt-generate<\/code>.<\/li>\n\n\n\n<li>Begin every media workflow with <code>--estimate<\/code> and explicit human approval.<\/li>\n\n\n\n<li>Record Claude Code usage and GlobalGPT media credits separately.<\/li>\n\n\n\n<li>On Windows, treat npm <code>ENOTFOUND<\/code> as a DNS problem first, not as proof of a broken CLI package.<\/li>\n\n\n\n<li>If a generation is interrupted, inspect the existing task before retrying.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Now that you know <strong>how to use GlobalGPT CLI in Claude Code<\/strong>, you can turn Claude Code into a practical control layer for chat, image, video, and structured content workflows. Start with a no-spend estimate, validate one small task end to end, and only then scale the workflow into batches or scheduled automation.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>","protected":false},"excerpt":{"rendered":"<p>Quick answer: Install Node.js 18 or later, run npm i -g @glbgpt\/cli, authorize with glbgpt login, then run glbgpt skill install. Restart Claude Code in your project directory and ask it to use GlobalGPT for an image, video, or bulk text task. Use &#8211;estimate before media generation so you can review the credit cost first. [&hellip;]<\/p>","protected":false},"author":16,"featured_media":16895,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_seopress_robots_primary_cat":"","_seopress_titles_title":"How to Use GlobalGPT CLI in Claude Code","_seopress_titles_desc":"Learn how to install GlobalGPT CLI, connect it to Claude Code, and automate chat, image, and video workflows with Agent Skills and practical fixes.","_seopress_robots_index":"","footnotes":""},"categories":[7],"tags":[],"class_list":["post-16645","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ai-chat"],"_links":{"self":[{"href":"https:\/\/wp.glbgpt.com\/id\/wp-json\/wp\/v2\/posts\/16645","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.glbgpt.com\/id\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.glbgpt.com\/id\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.glbgpt.com\/id\/wp-json\/wp\/v2\/users\/16"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.glbgpt.com\/id\/wp-json\/wp\/v2\/comments?post=16645"}],"version-history":[{"count":23,"href":"https:\/\/wp.glbgpt.com\/id\/wp-json\/wp\/v2\/posts\/16645\/revisions"}],"predecessor-version":[{"id":16927,"href":"https:\/\/wp.glbgpt.com\/id\/wp-json\/wp\/v2\/posts\/16645\/revisions\/16927"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wp.glbgpt.com\/id\/wp-json\/wp\/v2\/media\/16895"}],"wp:attachment":[{"href":"https:\/\/wp.glbgpt.com\/id\/wp-json\/wp\/v2\/media?parent=16645"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.glbgpt.com\/id\/wp-json\/wp\/v2\/categories?post=16645"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.glbgpt.com\/id\/wp-json\/wp\/v2\/tags?post=16645"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}