iTranslated by AI

The content below is an AI-generated translation. This is an experimental feature, and may contain errors. View original article
👗

Giving ClaudeCode a Face: Introducing Avatar-code

に公開

It feels a bit intimidating for an amateur like me to post an article on Zenn, but since the arrival of ClaudeCode, I've been able to build the app I always wanted, and I feel as refreshed as a fish finding water—so I decided to share. By the way, I didn't use AI to write this text.

Now, there are so many articles and tweets about ClaudeCode that it's quite hard to keep up with everything these days. I imagine many of you might be feeling a bit lonely, staring at your black screens while interacting with AI.

Of course, you can create a .claude/rules/persona file to set its personality, tone, and emoji usage to do some "vibe coding" with a cute character, but I want to see a face. Once you set a persona and start chatting, you grow attached, and that makes you want a face for ClaudeCode even more.

I originally developed this for myself under the name "artemisia".

Also, since I'm someone who has to commute to the office, I wanted to be able to connect to my home environment and instruct ClaudeCode while I'm away. I want to be able to tell ClaudeCode about ideas that pop into my head at any moment.

So, I made it possible to see an AI avatar's face like a chat interface and operate the ClaudeCode running on my home PC through a browser. The advantage is that I can operate it from my smartphone because it's browser-based. Most of all, the biggest benefit is being able to interact with a cute-icon version of ClaudeCode.
Since I was at it, I used the Gemini API to give it a "selfie" function so I can have fun "dressing it up" every day.
Yes, I suppose the objective started to drift a little bit there.

In the meantime, Dispatch has been released.
I thought, "This looks pretty similar inside," but then I realized, "Wait, it doesn't have a face," so I decided I'll keep using my own browser app.

I thought it might be nice to open-source this setup so that it could perhaps comfort those who are feeling a bit lonely like I was. I had fun with generative AI around the time Nano-banana appeared, but this time it's dressing up ClaudeCode, so it's a lot of fun.
To make it OSS, I gave the product a generic-sounding name: "Avatar-code".

For modes, I've included the usual one where ClaudeCode asks for approval, as well as a mode where you can just give full permission to let it go wild. Please use it at your own risk.
It can also check and edit .md files inside folders.

Also, for the OSS release, I prepared a SETUP.md so that if you give the GitHub link to ClaudeCode and tell it, "Clone this and implement it," it can interact with you directly.

Aside from ClaudeCode, the requirements are:

  • Node.js
  • Wrangler CLI
  • Cloudflared
  • Environment variables
    And then, just provide whatever information ClaudeCode tells you it needs. If you don't want to use Gemini API for dressing up or image generation, you don't need the API key; you can just upload an image to give it a face.
    This is my first time doing OSS, so there might be some oversights, but I'd be happy if you could take a look.
    https://github.com/sat315/avatar-code

I work in architectural design, and since "Architecture" to "Arch" is very common, I enjoy making a "ClaudeCode maid" named "Arte" (Italian/Spanish for "art," "fine arts," "technique," "skill").

Why don't you try some nice "vibe coding" with your very own ClaudeCode that has its own face?

Note: Be aware that if you use the Gemini API too much, it might cost more than you expect and send your bill through the roof, so make sure to set a spending limit.

Discussion