AI Coding#
Claude Code#
Subscription claude code pro
Must pay extra for API keys 🖕, on https://console.anthropic.com
Cancel subscription: somewhere in https://claude.ai
API Keys, Aider
Containerizing#
Doityourself
AI Into A Jail#
# Use the full-featured, standard Python image
FROM python:3.12
# Install git (required by aider), cmake, and clean up apt caches to save space
RUN apt-get update && apt-get install -y --no-install-recommends \
git \
cmake \
doxygen \
emacs-nox \
libmosquitto-dev \
&& rm -rf /var/lib/apt/lists/*
RUN apt-get update && apt-get install -y --no-install-recommends \
git \
&& rm -rf /var/lib/apt/lists/*
# Install aider
RUN pip install --no-cache-dir aider-chat
# Set the working directory where your local repository will be mounted
WORKDIR /workspace
ENV HOME=/workspace
#CMD ["emacs"]
# Set aider as the default executable
ENTRYPOINT ["aider", "--cache-prompts", "--no-stream", "/workspace/trainings/material/soup/linux/why"]
# ENTRYPOINT ["ls", "/workspace"]
# ENTRYPOINT python # <-- works
# ENTRYPOINT bash
$ docker build -t aider-jail .
$ docker images --no-trunc
REPOSITORY TAG IMAGE ID CREATED SIZE
aider-jail latest sha256:b2a60396ce53544493ff0b198bb7d8e812909e54ab38446f7e949349d271f66f 8 minutes ago 1.75GB
$ ANTHROPIC_API_KEY=<insert key here>
$ GEMINI_API_KEY=<insert key here>
$ docker run -it --rm \
--user $(id -u):$(id -g) \
-e HOME=/workspace \
-e ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY} \
-e GEMINI_API_KEY=${GEMINI_API_KEY} \
-v ${HOME}/My-Projects/homepage/jfasch-home:/workspace:z \
-v ${HOME}/My-Builds/jfasch-home-aider:/builddir:z \
aider-jail
:z messes with selinux on fedora, gemini says