Skip to content

Commit 92136c7

Browse files
committed
feat(presets): ready-made Opus 4.8 API preset (cli-agents openai-server bridge)
Assets/Resources/CoreAIPresets/CoreAISettings_OpusApi.asset: OpenAiHttp backend at http://localhost:8801/v1 (the agent.sh openai-server default port), model 'opus' — drop-in config for driving CoreAI with Claude Opus 4.8 through the local CLI bridge without editing the live settings asset each time. README documents the one-line bridge launch. (.meta files intentionally left for Unity to generate.)
1 parent ad7c376 commit 92136c7

2 files changed

Lines changed: 110 additions & 0 deletions

File tree

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
%YAML 1.1
2+
%TAG !u! tag:unity3d.com,2011:
3+
--- !u!114 &11400000
4+
MonoBehaviour:
5+
m_ObjectHideFlags: 0
6+
m_CorrespondingSourceObject: {fileID: 0}
7+
m_PrefabInstance: {fileID: 0}
8+
m_PrefabAsset: {fileID: 0}
9+
m_GameObject: {fileID: 0}
10+
m_Enabled: 1
11+
m_EditorHideFlags: 0
12+
m_Script: {fileID: 11500000, guid: bc964192a1404b2458c3a69e06450221, type: 3}
13+
m_Name: CoreAISettings_OpusApi
14+
m_EditorClassIdentifier: CoreAI.Source::CoreAI.Infrastructure.Llm.CoreAISettingsAsset
15+
backendType: 2
16+
executionMode: 0
17+
autoPriority: 0
18+
apiBaseUrl: http://localhost:8801/v1
19+
apiKey:
20+
modelName: opus
21+
visionSupport: 0
22+
enableTemperatureOverriding: 0
23+
temperature: 0.1
24+
maxTokens: 20000
25+
maxClientLimitedRequestsPerSession: 0
26+
maxClientLimitedPromptChars: 0
27+
requestTimeoutSeconds: 240
28+
enableFallbackBackend: 0
29+
secondaryApiBaseUrl:
30+
secondaryApiKey:
31+
secondaryModelName:
32+
llmUnityAgentName:
33+
llmUnityAutoCreateRuntimeHost: 1
34+
llmUnityRuntimeHostObjectName:
35+
llmUnityAutostartLocalServer: 1
36+
ggufModelPath: Qwen3.5-4B-Q4_K_M.gguf
37+
llmUnityDontDestroyOnLoad: 1
38+
llmUnityStartupTimeoutSeconds: 120
39+
llmUnityStartupDelaySeconds: 1
40+
llmUnityKeepAlive: 0
41+
reasoningMode: 0
42+
thinkingBudgetTokens: 0
43+
extraBodyJson:
44+
llmUnityMaxConcurrentChats: 1
45+
llmUnityNumGPULayers: 99
46+
llmUnityServerPort: 13333
47+
universalSystemPromptPrefix: Respond concisely and to the point. Avoid unnecessary
48+
verbosity.
49+
toolContractAdditionalInstructions:
50+
maxLuaRepairRetries: 3
51+
maxToolCallRetries: 3
52+
allowDuplicateToolCalls: 0
53+
maxLlmRequestRetries: 2
54+
maxContextOverflowRetries: 3
55+
contextWindowTokens: 128000
56+
maxToolResultChars: 8000
57+
defaultToolTimeoutMs: 30000
58+
maxResponseChars: 0
59+
maxToolCallRoundtrips: 10
60+
maxToolCallHistoryMessages: 0
61+
maxParallelToolCalls: 4
62+
allowWorldPrimitives: 1
63+
enableStreaming: 1
64+
webGlNativeStreaming: 1
65+
enableLuaOnWebGl: 1
66+
sameOriginCredentials: 0
67+
enableConversationHistorySummarization: 1
68+
conversationHistoryRecentTokenBudgetOverride: 0
69+
conversationRolledSummaryMaxTokens: 0
70+
conversationCompactionTriggerRatio: 0.8
71+
enableContextPruning: 1
72+
maxRetainedToolResultMessages: 3
73+
enableLlmContextCompaction: 0
74+
enableTokenCalibration: 1
75+
offlineUseCustomResponse: 0
76+
offlineCustomResponse: 'Offline mode: LLM unavailable'
77+
offlineCustomResponseRoles: '*'
78+
enableMeaiDebugLogging: 1
79+
enableHttpDebugLogging: 1
80+
logLlmInput: 1
81+
logLlmOutput: 1
82+
logTokenUsage: 1
83+
logLlmLatency: 1
84+
logLlmConnectionErrors: 1
85+
logToolCalls: 1
86+
logToolCallArguments: 1
87+
logToolCallResults: 1
88+
logMeaiToolCallingSteps: 1
89+
llmRequestTimeoutSeconds: 240
90+
maxConcurrentOrchestrations: 2
91+
logOrchestrationMetrics: 1
92+
inputTokenPricePer1KUsd: 0
93+
outputTokenPricePer1KUsd: 0
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# CoreAI settings presets
2+
3+
Ready-made `CoreAISettingsAsset` instances. To use one, either point your bootstrap at it,
4+
or copy its serialized values over `Assets/Resources/CoreAISettings.asset`
5+
(the Hub's AI Settings tab edits the live asset the same way).
6+
7+
## CoreAISettings_OpusApi
8+
9+
Claude Opus 4.8 through the local `cli-agents` OpenAI-compatible bridge:
10+
11+
```bash
12+
# start the bridge (keeps running; one process = one model)
13+
bash ~/.claude/skills/cli-agents/agent.sh openai-server -e claude -m opus
14+
```
15+
16+
The preset targets `http://localhost:8801/v1` (the bridge's default port) with
17+
`backendType = OpenAiHttp`. No API key needed — the bridge uses your local CLI login.

0 commit comments

Comments
 (0)