HomeAboutToolsLearnSpeakingNewsletterConnect

The PR Pro's Guide to Setting Up & Using Claude Code

How PR experts, visibility specialists, and communications strategists can leverage Anthropic's breakthrough agentic CLI tool to construct AI-driven workflows—no advanced developer degree required.

What is Claude Code? Why Comms Needs It The Prerequisites Installation Steps Your First Command Building AI Visibility Tools Knowing the Limits

What is Claude Code? And Why Am I Looking at a Terminal?

If you've been following my journey on AI Visibility and Vibecoding, you know I strongly advocate for shifting from being a strict "tool user" to a "tool builder." Anthropic's new tool, Claude Code, takes this to an unprecedented level.

Claude Code is an agentic command-line interface (CLI) tool. This means instead of typing inside a standard web browser chat interface (like ChatGPT or Claude.ai), you interact with Claude directly within your computer’s terminal. Claude Code has direct read and write access to your local files, enabling it to write, run, and test code, search up documentation, and deploy entirely autonomous projects on your behalf.

To many PR professionals, opening the terminal application (that scary black screen with the blinking cursor) feels like crossing a technical red line. But the "Terminal" is simply a direct line to your computer's brain. And when you give Claude access to that direct line, you can command it to generate fully fledged PR tools and dashboards natively.

Why Are PR and AI Economy Experts Using It?

In the new AI economy, Generative Engine Optimization (GEO) and deep AI Visibility depend on speed. As a communications strategist, you might realize you need a tool to bulk-test brand sentiment across AI search engines, or a dashboard that tracks your client's exact visibility metrics over time.

The standard way is to pay a software developer thousands of dollars and wait three months. The vibecoding way was to generate the code in Claude.ai, copy/paste it into an editor, and figure out how to piece things together. Claude Code bypasses both. Let's see some concrete examples of what happens when a seasoned pro sets this up:

The Prerequisites: What You Need First

Because Claude Code operates via your command line, you need a minor bit of prep work. I promise it takes under five minutes.

  1. Node.js & npm: This is the backbone environment required for it to run. Go to the official Node.js website, download the standard installer, and click through it exactly as you would install any other application.
  2. An Anthropic Console Account: You need an API key from Anthropic so Claude can charge fractions of pennies for the smarts it brings. Sign up at console.anthropic.com and add $10 directly to your account credits.
  3. Your Terminal App: Simply hit `Cmd + Space` (on a Mac), type "Terminal" and press Enter. Welcome to the command line!

⚡ Important Note on Billing

Claude Code uses Anthropic's API billing, which acts entirely separately from any existing Claude Pro ($20/mo) consumer subscription you might have.

The Installation Steps

Once you have Node.js installed, open that Terminal window and type exactly this, then hit Enter:

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

Your computer will spin its wheels for twenty seconds, placing the intelligence of a senior software architect directly on your hard drive.

After it finishes, you officially have Claude loaded natively into your system. To launch your new builder, simply navigate to the file folder you wish to work on, and type:

claude

The first time you start, it will prompt you for an authorization token. A browser window will pop open, asking you to log into Anthropic and click authorize. Once handled, you are permanently good to go.

Running Your First Command

Say you want to build a Python tool that analyzes sentiment for an upcoming PR campaign. Navigate your terminal by typing cd Desktop or wherever you'd like your new tool built. Then launch the program by typing claude.

At the prompt, simply type plain English:

"Hey Claude. I need you to create a Python application that fetches the latest news articles relating to 'Generative AI Workflows' and runs basic sentiment analysis on them. Put everything in a new directory, create the required requirements.txt for installing packages, and fully implement the script."

You can literally watch the matrix unfold before you. Claude will recursively execute shell commands, create folders (mkdir), scaffold Python documents, pull in required dependencies (like BeautifulSoup for web scraping and HuggingFace or standard NLTK packages for sentiment logic), and automatically debug any tracebook errors that pop up during execution.

Building AI Visibility Tools with Claude Code

Here at Zen Media, we lean heavily into AI visibility mapping. We typically use tools like GEO GPT to surface visibility gaps, but having Claude Code has allowed us to immediately scaffold single-use auditing tools to deeply assess our custom entity profiles.

For PR professionals looking to map a client's "Before Layer", having an autonomous agent write code to batch evaluate AI chatbot behavior provides you with robust reporting capabilities not easily done via manual ChatGPT prompting. When your agency says, "How does the competitive landscape compare internally?" you can now type a few sentences into Claude Code and have it produce a multi-layered dashboard parsing actual token probabilities.

Knowing the Limits & Safety

When you start wielding agentic workflows, things move extremely fast.

To PR professionals looking to lead the era of automated communications structure: stop fearing the terminal. Step up, install Claude, and direct your vision to life.

Mastering AI Workflows? Dive deeper into applying AI to shape narrative and scale thought leadership.

Read: Vibecoding for Comms →
Sarah Evans

Sarah Evans

Communications Strategist & Technology Builder. 23+ years in PR, Partner at Zen Media. Architect of AI visible systems and vibecoded infrastructure. Full bio →