Claude Local Files — Development skill for Claude Code
Serve local files to Claude Desktop via HTTPS for use in code artifacts.
How to install Claude Local Files
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open runekaagaard/claude-local-files and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Claude Local Files does
Serve local files to Claude Desktop via HTTPS for use in code artifacts.
Alternatives in Development
- Web Artifacts Builder — Build complex claude.ai HTML artifacts using React, Tailwind CSS, and shadcn/ui 94.1k ★
- Llamacoder — Open source Claude Artifacts – built with Llama 3.1 405B 7.1k ★
- Artifacts — Artifact Generation & Code Transformation 1.1k ★
README
Claude Local Files
Artifacts in Claude Desktop can only access cdn.jsdelivr.net/pyodide/* due to Content Security Policy restrictions. This app bypasses that restriction and allows Claude Desktop artifact and analysis tools to fetch local files and use them for calculations, UI's, etc.
I use it with [mcp-alchemy](https://github.com/runekaagaard/mcp-alchemy/) to have Claude Desktop generate UI reports for database result sets that are way too large for an LLM to read.
How it works
- Adds a line in /etc/hosts that points cdn.jsdelivr.net to 127.0.0.1
- Uses mkcert to generate a valid local SSL certificate for cdn.jsdelivr.net
- Starts a caddy server that proxies all other requests than to a specfic url folder to Fastly
- Files in the
./filesdirectory are served athttps://cdn.jsdelivr.net/pyodide/claude-local-files/[FILENAME] - Removes the line in /etc/hosts on exit
Installation
Ubuntu/Debian
# Install dependencies
sudo apt update
sudo apt install mkcert caddy
macOS
# Install dependencies
brew install mkcert caddy
Windows
Run in an elevated powershell (as administrator):
# Install dependencies
winget install CaddyServer.Caddy
winget install FiloSottile.mkcert
# Run the script
./claude-local-files.ps1
Usage
- Clone and enter the repository:
git clone https://github.com/runekaagaard/claude-local-files.git
cd claude-local-files
- Start the server:
./claude-local-files.sh
Add your files to the `files/` directory
Ask Claude Desktop to use the content of the file in a code artifact, e.g. https://cdn.jsdelivr.net/pyodide/claude-local-files/test.json
Testing
Test that the local server works:
curl -v https://cdn.jsdelivr.net/pyodide/claude-local-files/test.json
Test that CDN passthrough works:
curl -v https://cdn.jsdelivr.net/npm/jquery/dist/jquery.min.js
Generating URLs
To serve a file:
- Place it in the
files/dire
Related Skills
Serve
Start a local http server on 127.0.0.1:4567 to avoid file:// CORS issues. Required for React/Babel artifacts t
Serve Docs
Start a local HTTP server to browse the Plans gallery and Media library HTML files.
Sim Plugin Comsol
Use Codex and Claude Code with COMSOL via sim-cli: .mph inspection, live Desktop sessions, bounded execution,
Omk
Evidence-gated runner for Codex, Claude Code, OpenCode, and local coding agents. Routes tasks into scoped DAG
Ollama Intern MCP
The local intern for Claude Code — 42 job-shaped tools with correlation IDs, evidence-first briefs, durable ar
Chainworks Forge
Local macOS control plane for agent-driven engineering workflows with YAML runs, artifacts, and approval gates
Related Agents
Docs Dev
Owns the dbdocs package — the click CLI plus the extract/site pipeline that turns dbt artifacts into a single-
Timps Backup Sentinel
Audit backup health: Time Machine last backup time, all local git repos with uncommitted/unpushed changes, lar
Ehs Local App
Local application security specialist for the Ethical Hacker Squad. Reviews command-line tools, desktop applic