Robert Lainsbury, 22, originally from Kidderminster, Worcestershire and Dwayne Edgar, 29 from Llanedeyrn, Cardiff, appeared before Cardiff Crown Court on Monday.
They are charged with the murder of Lynford Brewster, who died from stab wounds in the Llanedeyrn area of Cardiff in June.
The pair will next appear in court on 28 October.
Two men have pleaded not guilty to the murder of a 29-year-old man in Cardiff.