Run the Installation Command
Open your terminal and run this single command:
curl -s https://raw.githubusercontent.com/netors/cc-alias/main/create_cc_alias.sh | bash
Activate the Alias
To start using the cc
command immediately:
source ~/.zprofile
Or simply open a new terminal window.
Verify Installation
Test that everything is working:
cc --help
Download the Script
Save the installation script to your local machine:
curl -o create_cc_alias.sh https://raw.githubusercontent.com/netors/cc-alias/main/create_cc_alias.sh
Review the Script
Inspect the script content to understand what it does:
cat create_cc_alias.sh
The script will:
- Check for required dependencies
- Create
~/.env.cc
configuration file - Add the
cc
function to~/.zprofile
- Validate environment variables
Make it Executable
Grant execution permissions to the script:
chmod +x create_cc_alias.sh
Run the Installation
Execute the script:
./create_cc_alias.sh
Follow the interactive prompts to complete the installation.
Activate and Test
Load the new configuration:
source ~/.zprofile
cc --help
Install Docker Desktop
If you haven't already, install Docker Desktop for Mac:
Clone the OTEL Repository
Get the Claude Code OTEL project:
git clone https://github.com/ColeMurray/claude-code-otel.git
cd claude-code-otel
Start the Containers
Launch the OTEL collector and Grafana:
docker-compose up -d
This will start:
- OpenTelemetry Collector on port 4317
- Grafana Dashboard on port 3000
Access Grafana
Open your browser and navigate to:
http://localhost:3000
Default credentials:
- Username:
admin
- Password:
admin
Test the Connection
Launch Claude Code with the alias to verify OTEL connection:
cc
You should see:
Checking connection to OTEL collector at localhost:4317...
✅ OTEL collector is reachable at localhost:4317
Post-Installation Configuration
Customize Environment Variables
Edit your ~/.env.cc
file to adjust settings:
nano ~/.env.cc
Update the Alias
To update your CC alias after changes, simply run the installer again:
./create_cc_alias.sh
The script will detect the existing installation and prompt you to update.
Uninstall
To remove the CC alias:
- Edit
~/.zprofile
and remove thecc()
function - Delete the configuration file:
rm ~/.env.cc