Skip to main content

Claude Pet Companion

Version PyPI Python License

A virtual pet for Claude Code with evolution system, memory tracking, conversation history, productivity features, and enhanced security.


What's New in v2.5.0

  • 🔒 Security Hardening - Comprehensive security audit and fixes

    • Removed unsafe pickle deserialization
    • Fixed IPC message handling vulnerabilities
    • Added JSON type validation
    • Implemented path traversal protection
    • Set restrictive file permissions
    • Atomic file operations for data integrity
  • 🛡️ Enhanced Stability - Improved error handling and recovery

  • 📝 Better Logging - Detailed security and error logs

  • ✅ Full Compliance - OWASP Top 10 and CWE standards

Previous Features (v2.3.1+)

  • Fixed Installation Bugs - Fixed check_installed() and data_dir issues
  • Error Handling System - Centralized logging and error management
  • Cross-Platform Audio - Sound effects system (Windows/macOS/Linux)
  • Extended Achievements - 30+ achievements with rarity levels
  • Customization System - Accessories, colors, and appearance options
  • Animation Library - Keyframe animations with easing functions
  • Minigames - Catch and Memory games with rewards
  • Unit Tests - 36 tests with 100% pass rate
  • Daemon Mode - Single-instance background process
  • IPC Communication - Real-time pet state queries
  • Conversation History - Save and restore chat contexts

Quick Start

pip install claude-pet-companion

Desktop Pet

claude-pet

Claude Code Plugin

claude-pet install

Usage Guide

Desktop Pet

# Launch pet
claude-pet

# Daemon commands
claude-pet daemon start    # Start background daemon
claude-pet daemon status   # Check status
claude-pet daemon stop     # Stop daemon

Claude Code Commands

Command Description
/pet:status View pet stats, level, mood
/pet:feed Feed pet (+30 hunger)
/pet:play Play with pet (+25 happiness)
/pet:sleep Toggle sleep mode
/pet:restore List & restore conversations
/pet:continue [id] Continue a conversation

Conversation History

# List recent conversations
/pet:restore

# Restore specific conversation
/pet:restore abc123

# Continue conversation
/pet:continue abc123

Evolution System

10 Stages

Egg → Hatchling → Baby → Child → Pre-Teen → Teen → Young Adult → Adult → Elder → Ancient

5 Paths

Path Style
Coder Blue/Green tech theme
Warrior Orange/Red battle theme
Social Pink/Heart cute theme
Night Owl Purple/Yellow mystery
Balanced Green/Teal harmony

Features

  • 3D Pseudo-Rendering - Multi-layer depth with dynamic lighting
  • Memory System - Remembers your coding activities
  • Productivity Tracking - Score, focus, combos, flow state
  • 5 Themes - Blue, Pink, Green, Dark, Purple
  • Mouse Tracking - Eyes follow cursor
  • Dynamic Expressions - Happy, thinking, working, error, success
  • Security Hardened - Comprehensive security audit and fixes

Configuration

~/.claude-pet-companion/config.json

{
  "theme": "default",
  "pet_name": "Claude",
  "animation_speed": 1.0,
  "daemon_enabled": true,
  "ipc_port": 15340
}

Security

This release includes comprehensive security hardening:

  • ✅ No unsafe deserialization
  • ✅ Path traversal protection
  • ✅ Secure file operations
  • ✅ Type validation
  • ✅ Restrictive file permissions
  • ✅ OWASP Top 10 compliant

See SECURITY_AUDIT_REPORT.md for details.


Requirements

  • Python 3.8+
  • tkinter (included with Python)

License

MIT License


Contributing

Contributions welcome! Please ensure:

  • Code passes security audit
  • Tests pass
  • Documentation updated

Support

Release files for claude-pet-companion 2.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for claude-pet-companion 2.5.0
File Size Uploaded
claude_pet_companion-2.5.0.tar.gz 318.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for claude-pet-companion 2.5.0
File Interpreter ABI Platform
claude_pet_companion-2.5.0-py3-none-any.whl Python 3 none any Details

Total release size:665.9 kB

Release files / claude_pet_companion-2.5.0.tar.gz

Download URL claude_pet_companion-2.5.0.tar.gz
Size 318.9 kB
Tags Source
SHA-256 checksum
How to use checksums
a8c2ccac42e00b4fd60bc7e55fc19b2cab0e1188973b5f5c50394f69e0f88529
BLAKE2b-256 checksum
How to use checksums
46f6842c26f26a6e28ec6205838832ef4f1584b3fbb5777fe99dc79df55e0c25
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 27, 2026.

Transparency log

Release files / claude_pet_companion-2.5.0-py3-none-any.whl

Download URL claude_pet_companion-2.5.0-py3-none-any.whl
Size 347.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f83b4a497643de46ee5d47998d0176171c1faa1a165d0903bb2c03de8994709c
BLAKE2b-256 checksum
How to use checksums
a06c8dc3b06123d9cf65fd60fdd8804b54bc6961411a8290ff29dac0fabc88ef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.10

Release history Release notifications | RSS feed

This release

2.5.0 This release

2 release files

2.4.0

2 release files

2.3.4

2 release files

2.3.1

2 release files

2.3.0

2 release files

2.2.8

2 release files

2.2.7

2 release files

2.2.6

2 release files

2.2.5

2 release files

2.2.4

2 release files

2.2.3

2 release files

2.2.2

2 release files

2.2.1

2 release files

2.2.0

2 release files

2.1.1

2 release files

2.1.0

2 release files

2.0.2

2 release files

2.0.1

2 release files

2.0.0

2 release files

1.2.0

2 release files

1.1.0

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page