Loading
TWINYA JS
Create a living AI version of yourself. Train it on your voice, personality, and behavior. Let your twin talk, move, and exist anywhere on the internet.
TWINYA JS - Installation Guide
$ npm install twinya-js
npm notice
added 156 packages
in 2.4s
$ npm start
=== TWINYA JS CLI ===
Interactive Twin Creator v1.0.0
Press Ctrl+C to exit
? Enter twin name: Alex
? Enter gender (male/female/other): male
? Choose AI provider:
1) OpenAI
2) Anthropic (Claude)
3) Google Gemini
4) xAI (Grok)
Enter choice (1-4): 1
[1/5] Setting up credentials...
✓ OpenAI API connected
[2/5] Initializing database...
✓ Supabase connection established
[3/5] Creating digital twin...
✓ Twin created with ID: twin_abc123xyz
[4/5] Configuring personality analysis...
✓ Personality engine ready
[5/5] Finalizing setup...
✓ Twin ready for training
$ twinya-cli add-training-data --twin-id twin_abc123xyz
Available data types:
--tweets <file> Add tweet samples
--messages <file> Add message samples
--code <file> Add code samples
--opinions <file> Add opinion statements
$ cat .env
VITE_SUPABASE_URL=https://your-project.supabase.co
VITE_SUPABASE_ANON_KEY=your_anon_key_here
OPENAI_API_KEY=sk-your-api-key
ANTHROPIC_API_KEY=sk-ant-your-key
GEMINI_API_KEY=your-gemini-key
XAI_API_KEY=your-xai-key
ELEVENLABS_API_KEY=your-elevenlabs-key
TRIPOD3D_API_KEY=your-tripod3d-key
$ cat src/index.js
import TwinyaSDK from 'twinya-js';
const sdk = new TwinyaSDK({
supabaseUrl: process.env.VITE_SUPABASE_URL,
supabaseKey: process.env.VITE_SUPABASE_ANON_KEY,
aiProvider: 'openai',
aiApiKey: process.env.OPENAI_API_KEY
});
const twin = await sdk.createTwin({
name: 'Alex',
gender: 'male'
});
$ twinya-cli features
Available features:
✓ Personality Cloning from multiple sources
✓ AI Provider Support (OpenAI, Anthropic, Gemini, xAI)
✓ Voice Cloning (ElevenLabs integration)
✓ 3D Avatar Generation (Tripod3D)
✓ Batch Training Data Processing
✓ Real-time Personality Analysis
✓ Multi-platform Deployment
$ twinya-cli --help
Commands:
start Launch interactive setup
add-training-data Import training samples
analyze-personality Run personality analysis
chat Chat with your twin
export Export twin configuration
deploy Deploy twin to platform
$ twinya-cli chat --twin-id twin_abc123xyz
Connected to Alex (male)
Type 'exit' to quit
You: Hello, what is your coding style?
Alex:
I prefer clean, modular code with strong typing...
You: exit
Goodbye!
$ twinya-cli deploy --platform web
Preparing deployment...
✓ Twin packaged
✓ Configuration validated
✓ Deployment complete
Your twin is now live at:
https://twinya-js.xyz/twins/twin_abc123xyz
Website: https://twinya-js.xyz
ready_
COMING SOON
Build Your AI Digital Twin
We're working hard to bring this feature to you. Stay tuned for the official launch!
Be among the first to create your digital twin. Sign up for early access.
For more updates, follow us:
Follow @heytwinya