Thanks to visit codestin.com
Credit goes to GitHub.com

Skip to content

mrsuperwealthy/grok-clone

 
 

Repository files navigation

Groc.lol - xAI's Grok clone

This is an open source clone of xAI's Grok. Made this just for fun. Don't sue me xAI. I love You.

Important: Groc is 100% unaffiliated with xAI.

Your favorite "legally distinct" AI chatbot made by a broke student.

Note: Free & open-source. Swap the models if you want something smarter!

Live Demo: groc.lol

Mobile app: PWA supported, click on the "Add to Home Screen" button in your browser.

Preview

Website Preview

Try Groc Now →

Features

  • Youtube link access (Chat, summary, ...etc)
  • Perplexity style Web search capabilities, searching both tweets and web pages.
  • Image generation using FLUX.1 by Black Forest Labs
  • Vision capabilities (chat with images)
  • Rate limiting
  • Customizable LLM settings

Tech Stack

  • LLM Options:
    • Primary Chat: Choose between Grok-beta (xAI) or alternative models
    • Function Calling: Choose between Llama (Groq) or alternative models
  • Web search: Serper
  • Rate limiting: Upstash
  • Image generation: FAL

Setup

Required API Keys

XAI_API_KEY=your_key 
GROQ_API_KEY=your_key
SERPER_API_KEY=your_key
FAL_KEY=your_key

Optional Configuration

UPSTASH_REDIS_REST_URL=your_url
UPSTASH_REDIS_REST_TOKEN=your_token

Customization

  • Rate limiting can be disabled by setting useRateLimiting to false in /app/config.tsx
  • LLM providers can be configured in /app/config.tsx:
    • Choose different models for primary chat and function calling
    • Switch between providers (Groq, xAI, etc.)
  • System prompts and parameters can be customized in types/chat.ts

Development

# Install dependencies
npm install
# or
yarn install

# Run development server
npm run dev
# or
yarn dev

Open http://localhost:3000 with your browser to see the result.

☕ Support

If you find this project helpful:

📞 Contact

About

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 99.2%
  • Other 0.8%