# 安装 IOUXI CLI
$ npm install -g @iouxi/cli
✓ @iouxi/cli@1.0.0 installed
# 一键创建 FEAIA 集成项目
$ iouxi create my-app --template feaia-electron
✓ Scaffolding my-app...
✓ Installing dependencies...
✓ Done! Run cd my-app && npm run dev
# 或完全参数化配置
$ iouxi create my-app --interactive
多框架 SDK
您熟悉的语言,熟悉的方式
import { FeaiaClient } from '@iouxi/feaia-sdk'
const feaia = new FeaiaClient({
apiKey: process.env.IOUXI_API_KEY,
model: 'gpt-4o', // or 'claude-3-5' | 'local'
persona: 'feiya-default', // 飞爱娅标准人格
localMode: false
})
// 发送消息,获取情感感知回复
const reply = await feaia.chat({
message: '今天工作好累…',
context: { mood: 'tired', hour: new Date().getHours() }
})
console.log(reply.text) // "辛苦啦~要不要听首歌放松一下?"
console.log(reply.emotion) // "caring"
console.log(reply.expression) // "smile_gentle" → Live2D 表情ID
from iouxi import FeaiaClient
feaia = FeaiaClient(
api_key=os.environ["IOUXI_API_KEY"],
model="local", # 本地模型模式
local_model="qwen2.5", # Ollama 中运行的模型
)
reply = feaia.chat(message="帮我总结一下这份文档", file="report.pdf")
print(reply.text)
print(reply.points) # 自动提取的要点列表
using IOUXI.Feaia;
public class FeaiaController : MonoBehaviour
{
private FeaiaClient _feaia;
async void Start(){
_feaia = new FeaiaClient(apiKey: IOUXIConfig.ApiKey);
await _feaia.InitAsync(persona: "feiya-default");
}
public async void OnPlayerInput(string input){
var reply = await _feaia.ChatAsync(input);
live2DController.SetExpression(reply.Expression);
ttsPlayer.Speak(reply.Text);
}
}
模板市场
20+ 即用模板,一键启动
FEAIA Electron 桌面伴侣
iouxi create --template feaia-electron微信小游戏·消除模板
iouxi create --template wx-match3AI SaaS 全栈模板
iouxi create --template ai-saas-nextReact Native AI App
iouxi create --template rn-ai-appFEAIA 插件脚手架
iouxi create --template feaia-plugin企业知识库 RAG
iouxi create --template enterprise-rag