# AI Coding Just Blew My Mind

Author: Charles Haworth · Published: 2025-03-05 · URL: https://charleshaworth.com/ai-coding-just-blew-my-mind/ · Category: AI & Systems

With no coding background, I used Claude Code to build an AI stock analysis advisor in about two hours, and explain how to run it yourself.

### So I Built an AI Stock Advisor….

I’ve always learned best by experimenting, and over the past few weeks, I have been playing with incredible AI-powered coding tools. I started with a basic online tutorial from an awesome YouTube channel called DeepCharts ([this one](https://www.youtube.com/watch?v=JqTL5r68j28&t=6s)), and then, using the latest Claude Code AI tool, I built an **AI-powered stock advisor** that anyone can run on their computer.

What amazed me the most? The speed and ease with which I went from a simple idea to a working product. This is **not** just a toy—it’s an actual AI-driven stock analysis tool that provides detailed insights, trading strategies and risk analysis on individual stocks.

**_Disclaimer:_** _This is an experimental tool for AI-driven stock analysis and_ **_not financial advice_**_!!_

### **What It Does**

• Takes in a stock ticker (e.g., AAPL, MSFT, TSLA)

• Uses AI to analyze trends, risks, and market sentiment

• Generates a **detailed stock report**

• Saves the report to your local machine for future reference

* * *

### **Why This Matters**

AI coding tools like Claude can take an idea and **turn it into reality faster than ever before**. I have no coding experience or training, and I would never have been able to code this myself —now, I built and deployed it in about 2 hours.

Even if you have never touched any code before, I highly recommend **just diving in**. The tools are **mind-blowingly good**, and the possibilities are endless.

* * *

### **I Want Your Feedback!**

This is just the first version—so I’d love to hear from you!

Use my substack chat area to send me feedback.

• Does the AI provide useful stock insights?

• Any bugs or issues you run into?

• Ideas for improvements?[](https://open.substack.com/pub/charleshaworth/chat?utm_source=chat_embed)

### **Try It Yourself: Run the AI Hedge Fund Advisor**

All you need is **Docker** and a **Perplexity API key** ([get one here](https://docs.perplexity.ai/guides/getting-started)).

I’ve packaged everything into a **Docker image** that you can run in a few simple steps. If you have **Docker installed**, you can spin up the AI stock advisor on your machine and start analyzing stocks within minutes.

### **🚀 Step-by-Step Guide to Run the AI Hedge Fund App**

#### **Prerequisites**

*   Docker installed on your system
    *   For Windows/Mac: Download and install Docker Desktop from [docker.com](https://www.docker.com/products/docker-desktop)
*   A Perplexity API key (sign up at [https://docs.perplexity.ai/](https://docs.perplexity.ai/guides/getting-started))
    *   You need to create an account, then you can click on “Generate API Key” and save the long code it gives you as you will need it later.

* * *

### **Steps to Run the Image**

Create a folder where you want to store the AI reports (e.g., on your Desktop) and go to that folder in file explorer or finder.

### Open a Terminal Window Inside the Folder

###### Windows:

Using File Explorer: Navigate to the folder in File Explorer.

*   Shift + Right-click inside the folder (on empty space).
*   Select “Open PowerShell window here” or “Open Command Prompt here” Mac (Terminal)

###### Mac:

*   Navigate to the folder in Finder.
*   Right-click the folder and select “New Terminal at Folder”.

### In the terminal window type the below commands:

#### **Create the reports folder inside your working directory**

```
mkdir -p reports
```

#### **Pull the Docker Image**

```
docker pull charleshaworth/ai_hedge_fund:latest
```

#### **Run the Container**

```
docker run -d -p 8080:8080 -v ./reports:/app/reports --name AI_Hedge_Fund charleshaworth/ai_hedge_fund:latest
```

#### **Access the Web Interface**

*   Open your web browser
*   Navigate to: [http://localhost:8080](http://localhost:8080/)
*   On first run, you’ll be prompted to enter your Perplexity API key
*   The key will be saved for future use

#### **Using the Application**

*   Enter a stock ticker symbol (e.g., AAPL, MSFT, TSLA)
*   Click “Analyze Stock”
*   Wait for the analysis to complete (this may take 1-2 minutes)
*   View the analysis report directly in the browser
*   Click “Download Report” to save the HTML file to your computer

#### **Managing the Container**

Stop the app:

```
docker stop AI_Hedge_Fund
```

Start the app again:

```
docker start AI_Hedge_Fund
```

Remove the app:

```
docker rm -f AI_Hedge_Fund
```

#### **Note**

Reports are saved to the local “reports” directory you created

The API key is stored inside the container for persistence
