Skip to content

dentarg/ai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ai image

Create $HOME/ai/settings with .claude.tmpl.json:

{
  "bypassPermissionsModeAccepted": true,
  "hasCompletedOnboarding": true,
  "primaryApiKey": "op://vault-name/long-id/password",
}

or .claude.json or .claude.<profile>.json (and optionally .credentials.<profile>.json with oauth tokens)

Add CLAUDE.md to $HOME/ai/settings if you want.

# start podman and share the current working directory
bin/ai

# start services (and run "bundle install" if Gemfile.lock exist)
s

# launch claude
cool_claude

# launch claude with a specific config
cool_claude <profile>

Prerequisites

Your Anthropic API key in 1Password.

brew install podman
podman machine init
podman machine start
./build_image

Tricks

docker run --rm -it --net=container:<container> nicolaka/netshoot tcpdump -i any
podman run --rm -it --cap-add=NET_RAW --cap-add=NET_ADMIN --net=container:<container> nicolaka/netshoot tcpdump -i eth0

docker image inspect ai:latest

# give more disk/memory (memory is in MiB, disk in GiB)
podman machine stop
podman machine set --disk-size 200
podman machine set --memory 8192
podman machine start

# to see current settings
podman machine inspect

# when we can't build because we're out of space
podman system prune--all

Stuff

  • Claude Code
  • GitHub Copilot
  • Google Gemini
  • Node.js
  • Bun TypeScript
  • Ruby
  • Crystal
  • Python
  • Rust
  • Go
  • SSH (ssh-keygen, ...)
  • PostgreSQL
  • LavinMQ
  • amqpcat

About

Easily start the agent in a container

Resources

Stars

Watchers

Forks