feat: add Kode-Agent provider support#391
Closed
CrazyBoyM wants to merge 2 commits intoNVIDIA:mainfrom
Closed
Conversation
Add support for Kode (https://github.com/shareAI-lab/Kode-Agent), an open-source AI-powered terminal assistant for intelligent code development. Kode is a multi-model coding agent that supports both Anthropic and OpenAI APIs. Changes: - New provider plugin (kode.rs) with ANTHROPIC_API_KEY and OPENAI_API_KEY credential discovery - CLI enum variant for --type kode - Provider type normalization with aliases: kode, kwa, kd - Network policy for kode_agent allowing api.anthropic.com and api.openai.com access - Unit tests for credential discovery and alias normalization
- Remove kwa/kd aliases, register only the kode command - Simplify network policy binaries to kode and node only - Add Kode to supported-agents and default-policy docs
|
Thank you for your interest in contributing to OpenShell, @CrazyBoyM. This project uses a vouch system for first-time contributors. Before submitting a pull request, you need to be vouched by a maintainer. To get vouched:
See CONTRIBUTING.md for details. |
|
Thank you for your submission! We ask that you sign our Developer Certificate of Origin before we can accept your contribution. You can sign the DCO by adding a comment below using this text: I have read the DCO document and I hereby sign the DCO. You can retrigger this bot by commenting recheck in this Pull Request. Posted by the DCO Assistant Lite bot. |
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add Kode as a first-class provider in OpenShell. Kode is an open-source, multi-model AI coding agent that supports both Anthropic and OpenAI APIs through a unified terminal interface.
Changes
Provider plugin (
crates/openshell-providers/)kode.rsprovider withANTHROPIC_API_KEYandOPENAI_API_KEYcredential discoverynormalize_provider_typeCLI (
crates/openshell-cli/)Kodevariant toCliProviderTypeenumNetwork policy (
crates/openshell-sandbox/testdata/)kode_agentpolicy allowingapi.anthropic.comandapi.openai.com(port 443)/usr/local/bin/kodeand/usr/bin/nodeDocumentation (
docs/)Usage
About Kode
@shareai-lab/kode(Apache 2.0)kodeTest plan
kode.rscredential discovery (ANTHROPIC_API_KEY and OPENAI_API_KEY)normalize_provider_type("kode")returnsSome("kode")detect_provider_from_command(&["kode"])returnsSome("kode")openshell sandbox create -- kodeauto-detects the kode provider type