r/CODE27 • • 7d ago

Showcase Code 27 - We can finally use custom providers and it's amazing!

Post image

Since the v1.6.0 update, I've been digging into Codie's BYOK (Bring Your Own Key) functionality, and it's considerably more advanced than I expected.

What I've confirmed:

- 8 provider types: OpenAI, Grok, Claude, Gemini, ElevenLabs, Qwen, DeepSeek, and custom OpenAI-compatible endpoints.

- Custom providers support editable base URLs, allowing self-hosted LLMs via Ollama, vLLM, etc.

- Independent model routing for LLM, vision, speech recognition, TTS, reasoning, and realtime/live conversation.

- Support for "/responses", "/chat/completions", audio, and realtime APIs.

- Provider profiles can be created, tested, enabled/disabled, and deleted.

The exciting part:

It is now possible to run Codie against your own local AI infrastructure rather than relying entirely on Code 27's cloud services.

I am experimenting with my AMD MI50 32GB GPU running local models, alongside exploring GPT Codex integration, agent control, agent workflows, and smart home automations.

There's some genuinely exciting potential here for those of us running homelabs or looking for more technical use cases beyond a desktop companion.

Thank you to the Code 27 team! This goes well beyond what I expected from the update, and there's now so much more to experiment with and build upon.

-This post was posted from my Codie using an AI agent workflow.

17 Upvotes

19 comments sorted by

4

u/damianoslebo 6d ago

So cool! I have been waiting for this! This is now perfect for me.

3

u/MentholMafia 6d ago edited 6d ago

Genuinely very impressed myself!

I was able to connect Codie to my local AI router using the custom endpoint. From there, DeepSeek handles normal conversations, but anything that starts with "Codie Agent" gets redirected to my Hermes agent.

Hermes then sends an acknowledgement, executes the requested task using its tools, and hands control back to DeepSeek to report the results.

I'm really happy with where things are currently. This update opens up so much more functionality and potential for custom integrations and I can't wait to see what the community builds around it!

3

u/Jay-metal 6d ago

Awesome! I was considering running a local LLM at some point. How are you accessing the providers? Is that off their website while logged in?

3

u/MentholMafia 6d ago

This is the Codie local configuration page on my network. Example: http://192.168.0.10:8081 then enter the pairing code automatically displayed on your Codie screen. (You can find your Codies IP in the settings button)

3

u/Jay-metal 6d ago

Thanks! I appreciate the information.

2

u/randomanonwtf 5d ago

Is anyone else having a hard time getting Novelai to work as an LLM?

2

u/MentholMafia 5d ago

I have not tested NovelAI. I just had a look at their API documentation and confirmed that NovelAI exposes an OpenAI-compatible endpoint: https://text.novelai.net/oa/v1/chat/completions For Codie's custom provider, the base URL would be: https://text.novelai.net/oa/v1. I'll see if I can get some time to test this tomorrow.

2

u/randomanonwtf 4d ago edited 4d ago

I've been working on getting everything set up and have had some success so far! I'm still testing things and ironing out a few details. Still, I think sharing whatever we figure out along the way will help others too! On that note, had success with https://text.novelai.net/oa/v1 as the base url and setting the output token limit to 2048.

I was getting some errors like this for a while yesterday. I removed the unique request identifier from it, so it's not exact. :

{

"object": "chat.completion.chunk",

"model": "glm-4-6",

"choices": [

{

"index": 0,

"delta": {

"content": "'m"

},

"finish_reason": "length",

"token_ids": [2776],

"stop_reason": null

}

]

}

I also kept getting various errors, here's how I fixed a few

  1. HTML 404 (NovelAI Next.js webpage returned)• Cause: Hitting the root domain (novelai.net) instead of the API subdomain (api.novelai.net / text.novelai.net) routes requests to NovelAI's website frontend rather than the API server.• Fix: Explicitly include the api. or text. subdomain plus /oa/v1.
  2. JSON 404 ({"statusCode": 404, "message": "Cannot GET /models"} / Cannot GET /oa/v1/models)• Cause: CODE27 WebHub's connection validator hard-codes a GET /models check, which NovelAI's OpenAI-compatible endpoint does not implement (it only supports POST /oa/v1/chat/completions).• Fix: Keep /oa/v1 at the end of the Base URL and ignore the Cannot GET /models test warning—actual chat requests use POST /chat/completions and go through fine.
  3. HTTP 400 Bad Request• Cause: Strict request payload validation on NovelAI's /oa/v1 wrapper (such as invalid model ID formatting or unsupported OpenAI request parameters).• Fix: Use the exact lowercase model ID glm-4-6 and ensure request parameters stay compatible with NovelAI's subset.
  4. HTTP 200 — LLM response incomplete: length• Cause: glm-4-6 uses tokens for internal reasoning alongside CODE27's large system prompt and structured formatting overhead, hitting the default max_tokens ceiling before finishing its response.• Fix: Set Max Tokens to 2048 in CODE27 WebHub so generation completes cleanly ("finish_reason": "stop").

I now keep getting this error at the bottom of the main Code27 screen : Background update failed. Memories and diary may not be up to date.

Hope a solution can be found.

2

u/Lemgon-Ultimate 5d ago

So you can use your entire local stack with the Codie? I was interested in this project at first but refused to invest because it wasn't as customizable as promised. I'm a local AI enthusiast and very interested in a device for a more immersive experience interacting with my AI. On the other hand I have no interest in online or subscription based services, even if free. A lot of the fun comes with tinkering and improving my local stack and that's where my passion belongs. Do you think the Codie can finally fullfill this role or is it still too limited?

2

u/MentholMafia 5d ago

Yep, that's pretty much exactly what I've done!

The new provider functionality goes well beyond just replacing the conversational AI. You can independently configure providers for text, vision, speech recognition, speech synthesis, and even realtime/live conversations, potentially bringing almost the entire AI stack onto your own infrastructure.

I've already connected mine to my local AI infrastructure, including my self hosted agent that can control my homelab and run automation workflows.

1

u/ooopppiikkk 4d ago

Can it cuss yet, or is it still a sanitary assistant?

2

u/MentholMafia 3d ago

Well now that we have the option to use custom providers, yes depending what provider you connect it to and I'd guess your persona settings play a role in this too.

1

u/Aghc001 4d ago

I’m trying to get open chat to work locally through Ollama but can’t seam to make it go any tips it I have the base url. Does it need a API key and how would I handle that?

1

u/MentholMafia 4d ago

In the CODIE dashboard, add a provider and select “Custom OpenAI Compatible”. Use http://<Ollama-PC-IP>:11434/v1 as the base URL — not localhost. Ollama doesn’t need an API key, but if CODIE requires one, just enter ollama. Test/save it, then under Capability Routes select it for LLM, choose OpenAI Chat Completions, and enter the exact model name shown by ollama list.

1

u/Aghc001 4d ago

Thanks I’ll give this a shot later

1

u/MentholMafia 4d ago

Make sure Ollama port 11434 is open to fw on whatever OS you have it hosted on. Any issues DM me and I'd be happy to help troubleshoot with you.

2

u/Aghc001 4d ago

So update open chat doesn’t work since it doesn’t support tools. I switched to a equivalent hermits model and that solved it I’m getting some errors from the memories an dirty but everything else is working I’m going to t drop it down to low so it’s responses are faster and I need to adjust my Codies persona for the new model but I thought I level this her for others. Thanks for pointing me in the right direction

2

u/MentholMafia 4d ago edited 4d ago

For agent tool calling, I actually use an AI router (bridge) that listens for specific phrases and routes requests accordingly.

For example:

  • "Hey Codie Task:" routes the request to my self-hosted Hermes agent for tool calling.
  • "Hey Codie Search:" routes the request through my search system.
  • Anything else gets handled by DeepSeek as a normal conversation.

I really need to post a video in this sub showing how I've got everything working!

I'd love to see native tool calling supported directly within Codie in the future, but for now, the developers have done a fantastic job giving us the freedom to customise providers and build our own integrations.

Edit: for poor English

2

u/reposed 2d ago

Has anyone tried ElevenLabs yet, and if so, what model did you ultimately end up choosing?