AIdea Server - AI Chat, Collaboration & Image Generation

March 5, 2026 · View on GitHub

English | 简体中文

mylxsw%2Faidea-server | Trendshift

A fully open-source APP server built with Golang that integrates mainstream large language models and image generation models.

Try it out:

https://aidea.aicode.cc

Open-source repositories:

Self-hosting

If you prefer not to use the managed cloud service, you can deploy the server yourself. See the deployment guide here.

If you'd rather have someone else handle the setup, feel free to reach out for assisted deployment. See Assisted Server Deployment for details.

Community

  • WeChat tech discussion group:

    If you cannot join, add WeChat ID x-prometheus as a friend and you'll be invited to the group.

  • WeChat Official Account

About the Code

Code comments and technical documentation are currently limited and will be supplemented over time. Please note the following points to avoid confusion:

  • Room and Advisory Group in the code both refer to Digital Persona. Due to multiple revisions, the naming evolved: RoomAdvisory GroupDigital Persona.
  • The v1 version of Creation Island is entirely different from v2. v1 served App versions up to 1.0.1; starting from 1.0.2 it is no longer used, hence the v2 version.

Frameworks used in this project:

  • Glacier Framework: An in-house modular application development framework with dependency injection support, built on the go-ioc IoC container. It solves dependency propagation and modularization for Go applications.
  • Eloquent ORM: An in-house code-generation-based ORM framework inspired by the Laravel PHP framework, with support for MySQL and other databases.

Code structure:

DirectoryDescription
apiOpenAI-compatible API; endpoints here can be used directly by any third-party software that supports the OpenAI API protocol
serverAPI endpoints provided for the AIdea client application
configConfiguration definitions and management
migrateDatabase migration files (SQL)
cmdApplication entry point
pkgPublic packages that can be imported by other projects
⌞ aiAI model interface implementations for various providers
⌞ ai/chatAbstract chat model interface; all chat models are wrapped here to be compatible with the OpenAI Chat Stream protocol
⌞ aliyunAlibaba Cloud SMS and content-safety service implementations
⌞ dingdingDingTalk notification bot
⌞ miscMiscellaneous helper functions
⌞ jobsScheduled tasks, e.g. daily user token-consumption statistics
⌞ mailEmail sending
⌞ proxySOCKS5 proxy implementation
⌞ rateRate-limiting implementation
⌞ redisRedis instance
⌞ repoData model layer; encapsulates all database operations
⌞ repo/modelData model definitions using mylxsw/eloquent
⌞ serviceService layer for logic that doesn't belong in the Controller or Repo layers
⌞ smsUnified SMS service abstraction that hides the underlying SMS provider implementation from business logic
⌞ tencentTencent speech-to-text and SMS service implementations
⌞ tokenJWT Token
⌞ uploaderFile upload/download backed by Qiniu Cloud Storage
⌞ voiceText-to-speech backed by Qiniu Cloud (currently disabled)
⌞ youdaoYoudao Translation API implementation
internalInternal packages; only available within this project
⌞ queueTask queue implementation; all asynchronously processed tasks are defined here
⌞ queue/consumerTask queue consumers
⌞ paymentOnline payment service implementations (e.g. Alipay, Apple)
⌞ coinsService pricing and billing policies
config.yamlExample configuration file
coins-table.yamlExample pricing table configuration
nginx.confExample Nginx configuration
systemd.serviceExample Systemd service configuration

Build the project:

go build -o build/debug/aidea-server cmd/main.go

App Screenshots

Light theme

image

Dark theme

image

Star History

Star History Chart

License

MIT

Copyright (c) 2023, mylxsw